国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
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.

132 lines
5.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>BShare分享插件</title>
  6. <?php
  7. if(is_file(DEDEINC.'/js/jquery/jquery.js'))
  8. {
  9. ?>
  10. <script language="javascript" src="../static/js/jquery/jquery.js"></script>
  11. <?php
  12. } else {
  13. ?>
  14. <script language="javascript" src="../static/js/jquery.min.js"></script>
  15. <?php
  16. }
  17. ?>
  18. <?php
  19. if(is_file(dirname(__file__).'/../img/base.css'))
  20. {
  21. ?>
  22. <link href="img/base.css" rel="stylesheet" type="text/css" />
  23. <?php
  24. } else {
  25. ?>
  26. <link href="css/base.css" rel="stylesheet" type="text/css" />
  27. <?php
  28. }
  29. ?>
  30. </head>
  31. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  32. <div class="bodytitle">
  33. <div class="bodytitleleft"></div>
  34. <div class="bodytitletxt" style="padding-left:10px;">辅助插件</div>
  35. </div>
  36. <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="tbtitle" style="background:#CFCFCF;">
  37. <tr>
  38. <td bgcolor="#EDF9D5" colspan="2" background='images/tbg.gif' style="padding-left:10px;"><strong>bShare分享插件</strong></td>
  39. </tr>
  40. <tr>
  41. <td bgcolor="#FFFFFF" colspan="2"><p> bShare不止是一个分享按钮。bShare是全球中文互联网最强大的社交分享引擎!
  42. 只需一个按钮,就能为您的网站注入社交化功能! </p>
  43. <p>bShare智能分享引擎让您的用户可以轻松地将最喜欢的内容分享到社交网站、微博上与好友分享。用户无须离开您的网站,就能快速地进行分享,继续浏览您的网站!</p></td>
  44. </tr>
  45. <form id="form2" name="form2" method="post" action="?do=open" target="_self" onsubmit="return CheckSubmit();">
  46. <input name="submode" type="hidden" value="0" id="submode"/>
  47. <tr>
  48. <td colspan="2" bgcolor="#F9FCEF">&nbsp;<font color='red'>您尚未开通bShare,请先开通bShare服务:</font></td>
  49. </tr>
  50. <tr>
  51. <td width="20%" align="right" bgcolor="#FFFFFF">&nbsp;<b>网站域名:</b></td>
  52. <td width="80%" bgcolor="#FFFFFF"> &nbsp;&nbsp;<?php echo $_SERVER['HTTP_HOST'];?></td>
  53. </tr>
  54. <tr>
  55. <td align="right" bgcolor="#FFFFFF">&nbsp;<b>账号类型:</b></td>
  56. <td bgcolor="#FFFFFF"> <input name="bindtype" type="radio" id="bindtype0" value="0" checked="checked" class="bindtype"/>
  57. 新注册
  58. <input name="bindtype" type="radio" value="1" class="bindtype"/>
  59. 已经有账号</td>
  60. </tr>
  61. <tr>
  62. <td width="20%" align="right" bgcolor="#FFFFFF">&nbsp;<b>用户名:</b></td>
  63. <td width="80%" bgcolor="#FFFFFF">&nbsp;
  64. <input name="user" type="text" id="user" size="30" class='alltxt' />
  65. (E-Mail地址)</td>
  66. </tr>
  67. <tr>
  68. <td align="right" bgcolor="#FFFFFF">&nbsp;<b>密&nbsp;&nbsp;码:</b></td>
  69. <td bgcolor="#FFFFFF">&nbsp;
  70. <input name="pwd" type="password" id="pwd" size="30" class='alltxt' /></td>
  71. </tr>
  72. <tr id="repwdShow">
  73. <td align="right" bgcolor="#FFFFFF">&nbsp;<b>确认密码:</b></td>
  74. <td bgcolor="#FFFFFF">&nbsp;
  75. <input name="repwd" type="password" id="repwd" size="30" class='alltxt' /></td>
  76. </tr>
  77. <tr>
  78. <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="button" type="submit" class="np coolbg" id="button" value="开通bShare服务" /></td>
  79. </tr>
  80. </form>
  81. <tr>
  82. <td bgcolor="#F9FCEF" colspan="2">&nbsp;</td>
  83. </tr>
  84. </table>
  85. <script type="text/javascript">
  86. (function($)
  87. {
  88. var regular = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;
  89. function checkShow(doc)
  90. {
  91. $("#submode").val(doc.val());
  92. if(doc.val() ==1)
  93. {
  94. $("#repwdShow").hide();
  95. } else {
  96. $("#repwdShow").show();
  97. }
  98. }
  99. checkShow($(".bindtype"));
  100. $("#form2").submit(function(){
  101. if(!regular.test($("#user").val()))
  102. {
  103. alert('请输入正确的邮箱地址!');
  104. $("#user").focus();
  105. return false;
  106. }
  107. if($("#pwd").val() == '')
  108. {
  109. alert('请输入密码!');
  110. $("#pwd").focus();
  111. return false;
  112. }
  113. if($("#submode").val() == 0 &&
  114. $("#pwd").val() != $("#repwd").val())
  115. {
  116. alert('密码需要保持一致!');
  117. $("#repwd").focus();
  118. return false;
  119. }
  120. return true;
  121. });
  122. $("input:radio").change(function()
  123. {
  124. checkShow($(this));
  125. });
  126. })(jQuery);
  127. </script>
  128. </body>
  129. </html>