Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

select_servername.htm 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {include file="public/layout" /}
  2. <body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;min-width: auto;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="min-width: auto;box-shadow:none;">
  6. <!-- 操作说明 -->
  7. <div id="explanation" class="explanation">
  8. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  9. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  10. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  11. </div>
  12. <ul>
  13. <li>请鼠标点击选择服务器名称</li>
  14. </ul>
  15. </div>
  16. <div style="margin-top: 20px;">
  17. {volist name="select_servername" id="vo"}
  18. <span style="cursor: pointer;" data-servername="{$vo}" data-file_key="{$file_key}" data-sn_type="{$sn_type}" data-sn_name_sub="{$sn_name_sub}" onclick="selectServername(this);">{$vo}&nbsp;&nbsp;</span>{if condition="$key < count($select_servername) - 1"}|&nbsp;{/if}
  19. {/volist}
  20. </div>
  21. </div>
  22. <script type="text/javascript">
  23. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  24. // 选择服务器名称
  25. function selectServername(th){
  26. var servername = $(th).attr('data-servername');
  27. var file_key = $(th).attr('data-file_key');
  28. var sn_type = $(th).attr('data-sn_type');
  29. var sn_name_sub = $(th).attr('data-sn_name_sub');
  30. var _parent = parent;
  31. if (sn_type==1) {
  32. $(window.parent.document).find("#" + file_key).find('input[name="fileupload[server_name][]"]').val(servername);
  33. }else{
  34. $(window.parent.document).find("#server_name_"+sn_name_sub+'_' + file_key).val(servername);
  35. }
  36. _parent.layer.close(parentObj);
  37. }
  38. </script>
  39. {include file="public/footer" /}