?? addbiz.htm
字號:
{template header} <br /> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="40" class="left fontd">添加商家 </td> </tr> </table> <table width="960" height="40" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="left footline">如果你本身就是這家商家的經營者,我們歡迎你加盟我們,我們將會給你提供另外一個管理后臺以幫助你更好的維護資料和發布促銷信息.<br /> 請你在填寫資料時候在<a href="#" class="t">我是該商家的經營者,我希望加盟并取得后臺賬戶,請與我聯系.</a>前打勾并填寫聯系方式.<br /> 我們的工作人員將于第一時間和你聯系.</td> </tr> </table> <table width="940" height="5" border="0" cellpadding="0" cellspacing="0"> <form name="form1" action="savebiz.php" method="POST" target="iframe_data"> <input type="hidden" name="formhash" value="{FORMHASH}"> <tr> <td></td> </tr> </table> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F7EEF7"> <tr> <td height="27" class="left"> 除了標注必填的字段以外都是可選的。 </td> </tr> </table> <table width="940" height="5" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="157" height="31" class="left"><strong>商家簡介</strong></td> <td width="803" class="left"> </td> </tr> <tr> <td height="20" class="left">*商家名字:</td> <td class="left"> <input name="bizinfo[biz_name]" type="text" maxlength="50" id="bizinfo[biz_name]" style="width:200px;" /> </td> </tr> <tr> <td height="20" class="left">*所屬大類:</td> <td class="left"> <select name="bizinfo[biz_cid]" onchange="change_kind(parseInt(this.options[this.options.selectedIndex].value));" id="bizinfo[biz_cid]">$catelist</select></td> </tr> <tr> <td height="20" valign="top" class="left">*所屬小類:</td> <td class="left"><div id="div_sorts"> </div> </td> </tr> <tr> <td height="20" class="left">所在區:</td> <td class="left"> <select name="bizinfo[biz_district]" id="bizinfo[biz_district]"> <!--{loop $localCity $key $var}--> <option value="$key">$var</option> <!--{/loop}--></select></td> </tr> <tr> <td height="20" class="left">地址:</td> <td class="left"> <input name="bizinfo[biz_address]" type="text" maxlength="100" id="bizinfo[biz_address]" style="width:200px;" /></td> </tr> <tr> <td height="20" class="left">電話:</td> <td class="left"> <input name="bizinfo[biz_phone]" type="text" maxlength="30" id="bizinfo[biz_phone]" style="width:200px;" /></td> </tr> <tr> <td height="20" class="left">傳真:</td> <td class="left"> <input name="bizinfo[biz_fax]" type="text" maxlength="30" id="bizinfo[biz_fax]" style="width:200px;" /></td> </tr> <tr> <td height="20" class="left">網站:</td> <td class="left"> <input name="bizinfo[biz_web]" type="text" maxlength="30" id="bizinfo[biz_web]" style="width:200px;" /></td> </tr> <tr> <td height="20" class="left">電子郵箱:</td> <td class="left"> <input name="bizinfo[biz_email]" type="text" maxlength="30" id="bizinfo[biz_email]" style="width:200px;" /></td> </tr> <tr> <td height="20" class="left">營業時間:</td> <td class="left"> <input name="bizinfo[biz_hours]" type="text" maxlength="100" id="bizinfo[biz_hours]" style="width:200px;" /> (如“8:00--17:00”)</td> </tr> <tr> <td height="20" class="left">公交路線:</td> <td class="left"> <input name="bizinfo[bus_line]" type="text" maxlength="30" id="bizinfo[bus_line]" style="width:200px;" /> (如“1路、82路”)</td> </tr> <tr> <td height="20" class="left">附近地標:</td> <td class="left"> <input name="bizinfo[area_flag]" type="text" maxlength="30" id="bizinfo[area_flag]" style="width:200px;" /></td> </tr> <tr> <td height="20" valign="top" class="left">*簡介:</td> <td class="left"> <textarea name="bizinfo[biz_intro]" rows="2" cols="20" id="bizinfo[biz_intro]" style="height:90px;width:377px;"></textarea> <span id="RequiredFieldValidator3" style="color:Red;visibility:hidden;">*簡介不能為空</span></td> </tr> <tr> <td height="20" class="left"><strong>消費指南</strong></td> <td class="left"> </td> </tr> <tr> <td height="20" valign="top" class="left">環境氣氛:</td> <td class="left"> <table id="CheckBoxList5" border="0"> <tr> <!--{loop $biz_specail['environment'] $key $var}--> <!--{if $key % 7 == 0}--> </tr><tr> <!--{/if}--> <td><input id="bizinfo[biz_env][]" type="checkbox" name="bizinfo[biz_env][]" value="$key"/><label for="CheckBoxList6_0">$var</label></td> <!--{/loop}--> </tr></table></td> </tr> <tr> <td height="20" valign="top" class="left">消費對象:</td> <td class="left"> <table id="CheckBoxList6" border="0"> <tr> <!--{loop $biz_specail['customer'] $key $var}--> <!--{if $key % 7 == 0}--> </tr><tr> <!--{/if}--> <td><input id="bizinfo[biz_customer][]" type="checkbox" name="bizinfo[biz_customer][]" value="$key"/><label for="CheckBoxList6_0">$var</label></td> <!--{/loop}--> </tr></table></td> </tr> <tr> <td height="30" class="left">商家規模:</td> <td class="left"> <table id="CheckBoxList7" border="0"> <tr> <!--{loop $biz_specail['scale'] $key $var}--> <!--{if $key % 7 == 0}--> </tr><tr> <!--{/if}--> <td><input id="bizinfo[biz_scale]" type="radio" name="bizinfo[biz_scale]" value="$key"/>$var</td> <!--{/loop}--> </tr></table></td> </tr> <tr> <td height="30" class="left">人均消費:</td> <td class="left"> <table id="CheckBoxList8" border="0"> <tr> <!--{loop $biz_specail['ave_consume'] $key $var}--> <!--{if $key % 7 == 0}--> </tr><tr> <!--{/if}--> <td><input id="bizinfo[biz_ave_consume]" type="radio" name="bizinfo[biz_ave_consume]" value="$key" />$var</td> <!--{/loop}--> </tr></table></td> </tr> <tr> <td height="20" class="left"><strong>特色服務</strong></td> <td class="left"> </td> </tr> <tr> <td height="20" class="left" valign="top">特色服務:</td> <td class="left"> <table id="CheckBoxList9" border="0"> <tr> <!--{loop $biz_specail['service'] $key $var}--> <!--{if $key % 7 == 0}--> </tr><tr> <!--{/if}--> <td><input id="bizinfo[biz_service][]" type="checkbox" name="bizinfo[biz_service][]" value="$key"/>$var</td> <!--{/loop}--> </tr></table></td> </tr> <tr> <td height="20" class="left"><strong>城市地圖</strong></td> <td class="left"> </td> </tr> <tr> <td class="left" style="height: 20px" valign="top"> *商家位置 </td> <td class="left" style="height: 20px"> <iframe src="../map/addbiz_map.php" frameborder="0" height="355" scrolling="no" width="605" name="mapiframe" id="mapiframe"></iframe> </td> </tr> <tr> <td class="left" style="height: 20px"> </td> <td class="left" style="height: 20px"> </td> </tr> <tr> <td height="20" colspan="2" class="left"> <input type="checkbox" name="isboss" onclick="changeIsboss()" value="0">我是該商家的經營者,我希望加盟并取得后臺賬戶,請與我聯系。 </td> </tr> <tr> <td height="20" colspan="2" class="left"> <span style="color: #d11b00">*真實姓名:</span><input name="bossname" type="text" id="bossname" /><br /> <span style="color: #d11b00">*聯系電話:</span><input name="bosstel" type="text" id="bosstel" /><br /> <span style="color: #d11b00">*電子郵箱:</span><input name="bossemail" type="text" id="bossemail" /> </td> </tr> <tr> <td> </td> <td> <br /> <br /> <b>您發布的信息務備真實可靠,夸大的信息我們可能會在未通知您的情況下刪除店鋪資料!</b><br /><br /></td> </tr> <tr> <td> </td> <td> <input type="button" name="Button2" value="確認發布店鋪資料" onclick="javascript:checkForm();" id="Button2" style="font-size:12px;width:200px;" /><input type="hidden" name="weizhiX" value="0"><input type="hidden" name="weizhiY" value="0"> </td> </tr> </form> </table> <br /> <br /><br /> <br /> </div> <script language="javascript" src="../webdata/js/abc.js"></script><script>function isArray(a){ return isObject(a) && a.constructor == Array;}function isObject(a){ return (a && typeof a == 'object') || isFunction(a);}function showBizSort(id_sort, kind_id, old_sorts){ var str=''; str = ' <table id="RadioButtonList1" border="0">'; var n = 0; for(var i=0; i < sort_list.length; i++) { if(sort_list[i][0] == kind_id) { n ++; str += '<td><input type="checkbox" name="bizinfo[biz_sort][]" value = "' + sort_list[i][1] + '" '+ '/>' + sort_list[i][2] + '</td>'; if( n % 6 == 0) { str += '</tr><tr>'; } } } str += '</table>'; return str;}function showStr(str){ $('div_sorts').innerHTML = str;}function change_kind(kind_id) { var old_sorts = new Array(); showStr(showBizSort("sorts", kind_id, old_sorts));}change_kind($bid);function changeIsboss(){ if($('isboss').value == '0') { $('isboss').value = 1; } else { $('isboss').value = 0; }}function checkForm(){ var biz_name = trim($('bizinfo[biz_name]').value); var biz_intro = trim($('bizinfo[biz_intro]').value); var weizhiX = parseInt($('weizhiX').value); var weizhiY = parseInt($('weizhiY').value); if(biz_name == 0) { alert('請輸入商家名稱'); $('bizinfo[biz_name]').focus(); return false; } if(biz_intro == 0) { alert('請輸入商家簡介'); $('bizinfo[biz_intro]').focus(); return false; } if(weizhiX == 0 || weizhiY == 0) { alert('請在地圖上標記位置'); return false; } if($('isboss').value == 1) { if(trim($('bossname').value) == '') { alert('請輸入真實姓名'); $('bossname').focus(); return false; } if(trim($('bosstel').value) == '') { alert('請輸入聯系電話'); $('bosstel').focus(); return false; } if(trim($('bossemail').value) == '') { alert('請輸入電子郵箱'); $('bossemail').focus(); return false; } } document.form1.submit();}</script>{template footer}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -