addbizcx.htm
来自「城市分类信息,门户网站,我做为地方信息网」· HTM 代码 · 共 264 行
HTM
264 行
{template header} <link rel="stylesheet" type="text/css" media="all" href="../css/calendar/calendar-win2k-cold-1.css" /> <script type="text/javascript" src="../js/calendar/Calendar.js"></script> <!-- language for the calendar --> <script type="text/javascript" src="../js/calendar/Calendar-zh.js"></script> <!-- the following script defines the Calendar.setup helper function, which makes adding a calendar a matter of 1 or 2 lines of code. --> <script type="text/javascript" src="../js/calendar/Calendar-Setup.js"></script> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="156" height="117" valign="top"><table width="150" border="0" cellpadding="0" cellspacing="0" class="index_int"> <tr> <td width="13" height="28" style="width:13; height:28 " class="index_int1"> </td> <td class="index_int2" style="color:#ffffff">我的用户中心</td> <td width="13" class="index_int3"><span class=""></span></td> </tr> </table> <table width="150" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="index_k4" style="padding:3px;" > <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href="../user/myindex.php" class="shopgogo">我的首页</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/userinfo.php?uid=$cbc_uid' class="shopgogo">别人眼中我的首页</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href="../user/myinfo.php" class="shopgogo">我的基本资料</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/mypwd.php' class="shopgogo">修改密码</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/mybiz.php' class="shopgogo">我的店铺</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href="../user/mydianp.php" class="shopgogo">我的点评</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/myflei.php' class="shopgogo">我发表的信息</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/sendmsg.php' class="shopgogo">发送短消息</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href="../user/message.php" class="shopgogo">收件箱</a></td> </tr> <tr> <td width="13%"><img src="../images/common/usr_tip.gif" width="11" height="11" /></td> <td width="87%"><a href='../user/message.php?action=outbox' class="shopgogo">发件箱</a></td> </tr> </table> </td> </tr> </table> </td> <td width="804" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eeeeee"><tr> <td height="23"> <img src="../images/arrow3.gif" width="3" height="5" /> 商家管理>><b>$biz_name</b></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="35" class="left"><strong>发布促销</strong> </td> </tr></table><table width="94%" border="0" cellspacing="0" cellpadding="0"><form action='index.php?action=savebizcx&bizid=$bizid' method="POST" name="form1" enctype="multipart/form-data" target="iframe_data"><input type="hidden" name="formhash" value="{FORMHASH}"> <tr> <td height="20" class="left">开始时间:</td> <td class="left"> <INPUT name="start_time" id="start_time"> <img src="../images/common/img.gif" id="f_trigger_c" style="cursor: pointer; border: 1px solid red;" title="时间控件" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /> </td> </tr> <tr> <td height="20" class="left">结束时间:</td> <td class="left"> <INPUT name="end_time" id="end_time"> <img src="../images/common/img.gif" id="f_trigger_cc" style="cursor: pointer; border: 1px solid red;" title="时间控件" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /> </td> </tr> <tr> <td height="20" class="left">促销标题:</td> <td class="left"> <input type="text" name="subject" id="subject" size="50" maxlength="100"/> </td> </tr> <tr> <td height="20" class="left">促销类型:</td> <td class="left"> <!--{loop $biz_coupon $key $var}--> <input type="radio" name="cptype" id="cptype" value="$key">$var <!--{/loop}--> </td> </tr> <tr> <td height="20" class="left">促销内容:</td> <td class="left"> <textarea name="content" rows="2" cols="20" id="content" style="height:100px;width:400px;"></textarea> </td> </tr> <tr> <td height="20" class="left">商品图片:</td> <td class="left"> <input type="file" name="imgfile" id="imgfile" /> </td> </tr> <script type="text/javascript"> Calendar.setup({ inputField : "start_time", // id of the input field ifFormat : "%Y-%m-%d", // format of the input field button : "f_trigger_c", // trigger for the calendar (button ID) align : "Br", // alignment (defaults to "Bl") singleClick : true }); Calendar.setup({ inputField : "end_time", // id of the input field ifFormat : "%Y-%m-%d", // format of the input field button : "f_trigger_cc", // trigger for the calendar (button ID) align : "Br", // alignment (defaults to "Bl") singleClick : true }); </script> <tr> <td colspan="2" class="left"> </td> </tr> <tr> <td> </td> <td> <input type="button" name="savebutton" value="保 存" onclick="javascript:checkForm()" id="savebutton" style="font-size:12px;height:28px;width:63px;" /></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> <table><tr> <!--{loop $bizproduct $key $product}--> <!--{if $key%4==0}--> </tr><tr> <!--{/if}--> <td><img src="$product[imgsrc]" width="80" height="80"> <br>$product[pname]<br><a href='index.php?action=modproduct&bizid=$bizid&ptid=$product[ptid]'>[修改名称]</a> <a href='index.php?action=delproduct&bizid=$bizid&ptid=$product[ptid]' target="iframe_data">[删除商品]</a></td> <!--{/loop}--> </tr> </table> </td> </tr> </table></form> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <table id="Repeater1" cellspacing="0" border="0" style="border-collapse:collapse;"> <!--{loop $bizcoupon $var}--> <tr> <td> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <input name="Repeater1$ctl00$t2" type="text" value="1091" id="Repeater1_ctl00_t2" style="border-width:0px;height:0px;width:0px;" /> <a id="Repeater1_ctl00_LinkButton2" href='index.php?action=delbizcx&bizid=$bizid&cpid=$var[cpid]' target="iframe_data">删除信息</a> </td> </tr> <tr> <td bgcolor="#e2f5ff" style="border:1px solid #00a8ff; padding:5px; line-height:18px;" > <b>开始日期:$var[stime]<br /> 结束日期:$var[etime]<br /></b> $var[subject] </td> </tr> <tr> <td height="15"></td> </tr> </table> </td> </tr> <!--{/loop}--></table> </td> </tr> </table> </td> </tr> </table> <br /> <script type="text/javascript"> <!-- function checkForm(){ if(trim($('start_time').value)==''){ alert('请输入开始时间'); return false; } if(trim($('end_time').value)==''){ alert('请输入结束时间'); return false; } if(trim($('subject').value)==''){ alert('请输入促销标题'); return false; } if(trim($('content').value)==''){ alert('请输入促销内容'); return false; } /* expandstr = $('imgfile').value.substr($('imgfile').value.lastIndexOf('.'),$('imgfile').value.length); if(expandstr.toLowerCase() !='.jpg' && expandstr.toLowerCase() !='.gif' && expandstr.toLowerCase() != '.jpeg'){ alert('请确认图片的格式是否为 gif 或者 jpg,只允许上传gif或者jpg格式的图片'); return false; }*/ $('savebutton').disabled = true; document.form1.submit(); } --> </script> {template footer}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?