Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/ecshopjcw/templates/ |
<!-- $Id --> {include file="pageheader.htm"} {insert_scripts files="../js/utils.js"} <div class="main-div"> <form name="theForm" method="post" action=""> <table cellspacing="1" cellpadding="3" width="100%"> <tr> <td class="label">{$lang.label_category}</td> <td><select name="category" id="category"> <option value="0" selected>{$lang.all_category}</option> {$cat_list} </select></td> </tr> <tr> <td class="label">{$lang.label_brand}</td> <td><select name="brand" id="brand"> <option value="0" selected>{$lang.all_brand}</option> {html_options options=$brand_list} </select></td> </tr> <tr> <td class="label">{$lang.label_intro_type}</td> <td><select name="intro_type" id="intro_type"> <option value="all" selected>{$lang.all_intro_type}</option> {html_options options=$intro_list} </select></td> </tr> <tr> <td class="label">{$lang.label_need_image}</td> <td> <label> <select name="need_image" id="need_image"> <option value="true" selected>{$lang.need}</option> <option value="false">{$lang.need_not}</option> </select> </label></td> </tr> <tr> <td class="label">{$lang.label_goods_num}</td> <td><input name="goods_num" type="text" id="goods_num" value="1" /></td> </tr> <tr> <td class="label">{$lang.label_arrange}</td> <td><select name="arrange" id="arrange"> <option value="h" selected>{$lang.horizontal}</option> <option value="v">{$lang.verticle}</option> </select></td> </tr> <tr> <td class="label">{$lang.label_rows_num}</td> <td><input name="rows_num" type="text" id="rows_num" value="1" /></td> </tr> <tr> <td class="label">{$lang.label_charset}</td> <td><select name="charset" id="charset"> {html_options options=$lang_list} </select></td> </tr> <tr> <td class="label">{$lang.label_sitename}</td> <td><input name="sitename" type="text" id="sitename"></td> </tr> <tr> <td colspan="2" align="center"><input type="button" class="button" name="gen_code" value="{$lang.generate}" onclick="genCode()" /> </td> </tr> <tr> <td colspan="2" align="center"><textarea name="code" cols="80" rows="5" id="code"></textarea></td> </tr> </table> </form> </div> <script language="JavaScript"> var elements = document.forms['theForm'].elements; var url = '{$url}'; {literal} onload = function() { // 开始检查订单 startCheckOrder(); } /** * 生成代码 */ function genCode() { // 检查输入 if (isNaN(parseInt(elements['goods_num'].value))) { alert(goods_num_must_be_int); return; } if (elements['goods_num'].value < 1) { alert(goods_num_must_over_0); return; } if (isNaN(parseInt(elements['rows_num'].value))) { alert(rows_num_must_be_int); return; } if (elements['rows_num'].value < 1) { alert(rows_num_must_over_0); return; } // 生成代码 var code = '\<script src=\"' + url + 'goods_script.php?'; if (elements['category'].value > 0) { code += 'cat_id=' + elements['category'].value + '&'; } if (elements['brand'].value > 0) { code += 'brand_id=' + elements['brand'].value + '&'; } if (elements['intro_type'].value != 'all') { code += 'intro_type=' + elements['intro_type'].value + '&'; } code += 'need_image=' + elements['need_image'].value + '&'; code += 'goods_num=' + elements['goods_num'].value + '&'; code += 'arrange=' + elements['arrange'].value + '&'; code += 'rows_num=' + elements['rows_num'].value + '&'; code += 'charset=' + elements['charset'].value + '&'; code += 'sitename=' + encodeURI(elements['sitename'].value); code += '\"\>\</script\>'; elements['code'].value = code; elements['code'].select(); if (Browser.isIE) { window.clipboardData.setData("Text",code); } } </script> {/literal} {include file="pagefooter.htm"}