<option value="">选择等级</option> <?php getCategorySelect2("leveltype", $level); ?> </select> 地区: <select name="area" id="area"> <option value="">所属地区</option> <?php getCategorySelect("area", $area); ?> </select> 状态: <select name="industry" id="industry"> <option value="">选择状态</option> <?php getCategorySelect("industry", $industry); ?> </select> <input tyep="hidden" name="managerid" value="<?php echo $managerid; ?> "/> </div> </td> </tr> </form> </table> <table width="98%" height="101" border="0" cellpadding="3" cellspacing="1" class="table bordered" style="margin:0 auto;padding-top:0px;"> <thead> <tr bgcolor="#f5f5f5">
} return true; } </script> <body> <table width="98%" height="126" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;"> <form name="myform" action="customer_services_ok.php?act=add" method="post" onSubmit="return checkreg();"> <tr> <td height="24" colspan="2" bgcolor="#555555"><font color="#FFFFFF"> <strong>添加服务</strong></font></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">上级服务:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><select name="fid"> <option value="0">--顶级类别--</option> <?php getCategorySelect("services", $fid); ?> </select> </td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">服务名称:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="name" type="text" id="name" size="30" /></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">排序ID:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="rank" type="text" id="rank" size="20" value="0" /></td> </tr> <tr> <td height="24" bgcolor="#f1f1f1"> </td> <td height="24" bgcolor="#f1f1f1"><input type="submit" name="button" id="button" value="提交" /></td> </tr>
} return true; } </script> <body> <table width="98%" height="126" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;"> <form name="myform" action="customer_area_ok.php?act=add" method="post" onSubmit="return checkreg();"> <tr> <td height="24" colspan="2" bgcolor="#555555"><font color="#FFFFFF"> <strong>添加地区</strong></font></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">上级地区:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><select name="fid"> <option value="0">--顶级类别--</option> <?php getCategorySelect("area", $fid); ?> </select> </td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">地区名称:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="name" type="text" id="name" size="30" /></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">排序ID:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="rank" type="text" id="rank" size="20" value="0" /></td> </tr> <tr> <td height="24" bgcolor="#f1f1f1"> </td> <td height="24" bgcolor="#f1f1f1"><input type="submit" name="button" id="button" value="提交" /></td> </tr>
<fieldset data-role="collapsible"> <legend>更多-拥有者:<?php echo $list['managerid']; ?> -查看次数:<?php echo $list['viewcount']; ?> </legend> <!-- <div data-role="fieldcontain"> <label for="colors">地区::</label> <select name="area" id="area"> <option>选择地区</option> <?php getCategorySelect("area", $list['area']); ?> </select> </div> <div data-role="fieldcontain"> <label for="colors">行业:</label> <select name="source" id="source"> <option>选择行业</option> <?php getCategorySelect2("sourcetype", $list['source']); ?> </select> </div> <div data-role="fieldcontain"> <label for="name">地址:</label> <input name="addr" type="text" id="addr" size="50" value="<?php
} return true; } </script> <body> <table width="98%" height="126" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;"> <form name="myform" action="customer_industry_ok.php?act=add" method="post" onSubmit="return checkreg();"> <tr> <td height="24" colspan="2" bgcolor="#555555"><font color="#FFFFFF"> <strong>添加客户状态</strong></font></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">上级客户状态:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><select name="fid"> <option value="0">--顶级类别--</option> <?php getCategorySelect("industry", $fid); ?> </select> </td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">客户状态:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="name" type="text" id="name" size="30" /></td> </tr> <tr> <td width="13%" height="24" align="right" valign="middle" bgcolor="#f1f1f1">排序ID:</td> <td width="87%" height="24" align="left" valign="middle" bgcolor="#f1f1f1"><input name="rank" type="text" id="rank" size="20" value="0" /></td> </tr> <tr> <td height="24" bgcolor="#f1f1f1"> </td> <td height="24" bgcolor="#f1f1f1"><input type="submit" name="button" id="button" value="提交" /></td> </tr>
function getCategorySelect($tablename, $select_id = 0, $id = 0, $level = 0) { global $db; $category_arr = $db->getList(get_sql("SELECT * FROM {pre}{$tablename} WHERE fid = " . $id . " order by rank")); for ($lev = 0; $lev < $level * 2 - 1; $lev++) { $level_nbsp .= " "; } if ($level++) { $level_nbsp .= "┝"; } foreach ($category_arr as $category) { $id = $category['id']; $fid = $category['fid']; $name = $category['name']; $selected = $select_id == $id ? 'selected' : ''; echo "<option value=\"" . $id . "\" " . $selected . ">" . $level_nbsp . " " . $name . "</option>\n"; getCategorySelect($tablename, $select_id, $id, $level); } }