jswizard_settings.tpl.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php include mymps_tpl('inc_head');?>
  2. <style>
  3. .smalltxt{ font-size:12px!important; color:#999!important; font-weight:100!important}
  4. .altbg1{ background-color:#f1f5f8}
  5. </style>
  6. <script language="javascript" src="js/vbm.js"></script>
  7. <div id="<?=MPS_SOFTNAME?>" style=" padding-bottom:0">
  8. <div class="mpstopic-category">
  9. <div class="panel-tab">
  10. <ul class="clearfix tab-list">
  11. <li><a href="?part=settings" class="current">基本设置</a></li>
  12. <li><a href="?">调用项目管理</a></li>
  13. </ul>
  14. </div>
  15. </div>
  16. </div>
  17. <form method="post" action="?">
  18. <input name="return_url" value="<?php echo GetUrl();?>" type="hidden">
  19. <div id="<?=MPS_SOFTNAME?>">
  20. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  21. <tr class="firstr"><td colspan="2">数据调用</td></tr>
  22. <tbody style="display: yes; background-color:white">
  23. <tr>
  24. <td width="45%" class="altbg1" ><b>启用外部调用:</b><br /><span class="smalltxt">外部调用将使得您可以将<?=$mymps_global['SiteName']?>最新分类信息主题、排行等资料嵌入到您的普通网页中,访问者无需访问<?=$mymps_global['SiteName']?>即可获知<?=$mymps_global['SiteName']?>最近更新的情况</span></td><td class="altbg2"><label for="1"><input class="radio" type="radio" name="settingsnew[jsstatus]" value="1" id="1" <?php if($settings[jsstatus] == 1){echo 'checked';} ?>
  25. onclick="$Obj('hidden_settings_jsstatus').style.display = '';" > 是</label> &nbsp; &nbsp;
  26. <label for="0"><input class="radio" type="radio" name="settingsnew[jsstatus]" value="0" id="0" onclick="$Obj('hidden_settings_jsstatus').style.display = 'none';" <?php if($settings[jsstatus] == 0){echo 'checked';} ?>> 否</label>
  27. </td>
  28. </tr>
  29. <tbody>
  30. <tbody id="hidden_settings_jsstatus" style="background-color:white; <?php if($settings[jsstatus] == 0){echo 'display:none;';}?>">
  31. <tr>
  32. <td width="45%" class="altbg1" ><b>数据调用缓存时间(秒):</b><br /><span class="smalltxt">由于一些排序检索操作比较耗费资源,数据调用程序采用缓存技术来实现数据的定期更新,默认值 1800,建议设置为 900 的数值,0 为不缓存(极耗费系统资源)</span></td><td class="altbg2"><input type="text" size="50" name="settingsnew[jscachelife]" value="<?=$settings[jscachelife]?>" class="text">
  33. </td>
  34. </tr>
  35. <tr>
  36. <td width="45%" class="altbg1" ><b>外部调用数据日期格式:</b><br />
  37. <span class="smalltxt">使用 Y 表示年,m 表示月,d 表示天。如 Y/m/d 表示 2010/12/31</span></td><td class="altbg2"><input type="text" size="50" name="settingsnew[jsdateformat]" value="<?=$settings[jsdateformat]?>" class="text">
  38. </td>
  39. </tr>
  40. <tr>
  41. <td width="45%" class="altbg1" valign="top"><b>外部调用数据来路限制:</b><br /><span class="smalltxt">为了避免其它网站非法调用<?=$mymps_global['SiteName']?>数据,加重您的服务器负担,您可以设置允许调用<?=$mymps_global['SiteName']?>数据的来路域名列表,只有在列表中的域名和网站,才能调用您<?=$mymps_global['SiteName']?>的信息。每个域名一行,不支持通配符,请勿包含 http:// 或其它非域名内容,留空为不限制来路,即任何网站均可调用</span></td>
  42. <td class="altbg2"><textarea rows="6" name="settingsnew[jsrefdomains]" id="settingsnew[jsrefdomains]" cols="50"><?php echo $settings[jsrefdomains]?></textarea></td></tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <center><input class="mymps large" value="提 交" name="<?=CURSCRIPT?>_submit" type="submit"></center>
  47. </form>
  48. <?php mymps_admin_tpl_global_foot();?>