Ei kuvausta
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.

users_welcome_field.htm 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {eyou:volist name="$users_para" id="vo"}
  2. {eyou:switch name="vo.dtype"}
  3. {eyou:case value="mobile"}
  4. <!-- 手机文本框 start -->
  5. <li>
  6. {eyou:eq name='$users.is_mobile' value='1'}
  7. <em>{$vo.title}:</em><span>{$vo.dfvalue|default=''}</span>
  8. {eyou:else/}
  9. <em>{$vo.title}:</em><span><a href="JavaScript:void(0);" onclick="get_{$vo.fieldArr}{$vo.name|default=''}_mobile_code('绑定手机');">(绑定手机)</a></span>
  10. <script type="text/javascript">
  11. function get_{$vo.fieldArr}{$vo.name|default=''}_mobile_code(title) {
  12. var url = '{$RootDir}/index.php?m=user&c=Users&a=bind_mobile';
  13. if (url.indexOf('?') > -1) {
  14. url += '&';
  15. } else {
  16. url += '?';
  17. }
  18. url += 'title=' + title;
  19. //iframe窗
  20. layer.open({
  21. type: 2,
  22. title: title,
  23. shadeClose: false,
  24. maxmin: false, //开启最大化最小化按钮
  25. area: ['350px', '300px'],
  26. content: url
  27. });
  28. }
  29. </script>
  30. {/eyou:eq}
  31. </li>
  32. <!-- 手机文本框 end -->
  33. {/eyou:case}
  34. {eyou:case value="email"}
  35. <!-- 邮箱文本框 start -->
  36. <li>
  37. {eyou:eq name='$users.is_email' value='1'}
  38. <em>{$vo.title}:</em><span>{$vo.dfvalue|default=''}</span>
  39. {eyou:else/}
  40. <em>{$vo.title}:</em><span><a href="JavaScript:void(0);" onclick="get_{$vo.fieldArr}{$vo.name|default=''}_email_code('绑定邮箱');">(绑定邮箱)</a></span>
  41. <script type="text/javascript">
  42. function get_{$vo.fieldArr}{$vo.name|default=''}_email_code(title)
  43. {
  44. var url = "{eyou:url link='user/Users/bind_email'/}";
  45. if (url.indexOf('?') > -1) {
  46. url += '&';
  47. } else {
  48. url += '?';
  49. }
  50. url += 'title='+title;
  51. //iframe窗
  52. layer.open({
  53. type: 2,
  54. title: title,
  55. shadeClose: false,
  56. maxmin: false, //开启最大化最小化按钮
  57. area: ['350px', '300px'],
  58. content: url
  59. });
  60. }
  61. </script>
  62. {/eyou:eq}
  63. </li>
  64. <!-- 邮箱文本框 end -->
  65. {/eyou:case}
  66. {eyou:case value="text"}
  67. <!-- 单行文本框 start -->
  68. <!-- <li><em>{$vo.title}:</em><span>{$vo.dfvalue|default=''}</span></li> -->
  69. <!-- 单行文本框 end -->
  70. {/eyou:case}
  71. {eyou:case value="multitext"}
  72. <!-- 多行文本框 start -->
  73. <!-- <li><em>{$vo.title}:</em><span>{$vo.dfvalue|default=''}</span></li> -->
  74. <!-- 多行文本框 end -->
  75. {/eyou:case}
  76. {eyou:case value="checkbox"}
  77. <!-- 复选框 start -->
  78. <!-- <li>
  79. <em>{$vo.title}:</em><span>
  80. {eyou:volist name="$vo.trueValue" id="v2" key='k2'}
  81. {$v2}{if condition="$k2 < count($vo['trueValue'])"}、{/if}
  82. {/eyou:volist}
  83. </span>
  84. </li> -->
  85. <!-- 复选框 end -->
  86. {/eyou:case}
  87. {eyou:case value="radio"}
  88. <!-- 单选项 start -->
  89. <!-- <li>
  90. <em>{$vo.title}:</em><span>
  91. {eyou:volist name="$vo.trueValue" id="v2" key='k2'}
  92. {$v2}
  93. {/eyou:volist}
  94. </span>
  95. </li> -->
  96. <!-- 单选项 end -->
  97. {/eyou:case}
  98. {eyou:case value="select"}
  99. <!-- 下拉框 start -->
  100. <!-- <li>
  101. <em>{$vo.title}:</em><span>
  102. {eyou:volist name="$vo.trueValue" id="v2" key='k2'}
  103. {$v2}
  104. {/eyou:volist}
  105. </span>
  106. </li> -->
  107. <!-- 下拉框 end -->
  108. {/eyou:case}
  109. {eyou:case value="img"}
  110. <!-- 单张图 start -->
  111. <!-- {eyou:notempty name='$vo.info' /}
  112. <li><em>{$vo.title}:</em><span><img src="{$vo.info|default=''}"/></span></li>
  113. {/eyou:notempty} -->
  114. <!-- 单张图 end -->
  115. {/eyou:case}
  116. {eyou:case value="file"}
  117. <!-- 单个文件 start -->
  118. <!-- {eyou:notempty name='$vo.info' /}
  119. <li><em>{$vo.title}:</em><span><a href="{$vo.info|default=''}" download="{$vo.info|get_filename=###}">[点击下载]</a></span></li>
  120. {/eyou:notempty} -->
  121. <!-- 单个文件 end -->
  122. {/eyou:case}
  123. {eyou:include file="/public/static/template/users_v2/users_welcome_field_extend.htm" /}
  124. {/eyou:switch}
  125. {/eyou:volist}