<? 	
	switch ($gen)
	{
		case "management":
			if($ls=="insert")
			{
				$name=$_POST['name'];
				$title=$_POST['title'];
				$department=$_POST['department'];
				$tel=$_POST['tel'];
				$mobile=$_POST['mobile'];
				$email=$_POST['email'];
				$qq=$_POST['qq'];
			}else{
				$name=$generalpics_rows['name'];
				$title=$generalpics_rows['title'];
				$department=$generalpics_rows['department'];
				$tel=$generalpics_rows['tel'];
				$mobile=$generalpics_rows['mobile'];
				$email=$generalpics_rows['email'];
				$qq=$generalpics_rows['qq'];
			}                   

						?>
					  <tr bgcolor='#f4f4f4'>
					    <td width="20%"  height='40' style="padding-left:50px;"  >姓名：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="name" id="ls_name_common" size="16" maxlength="40" value="<?=($name==''?'':$name)?>"  onblur="checktype(this.value,'common','ls_name');" />
					    </div>
					      <div id="ls_name" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >职务：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="title" id="ls_title_common" size="16" maxlength="40" value="<?=($title==''?'':$title)?>"  onblur="checktype(this.value,'common','ls_title');" />
					    </div>
					      <div id="ls_title" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >部门：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="department" id="ls_department_common" size="16" maxlength="40" value="<?=($department==''?'':$department)?>"  onblur="checktype(this.value,'common','ls_department');" />
					    </div>
					      <div id="ls_department" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >电话：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="tel" id="ls_tel_cn-tel-zone" size="16" maxlength="40" value="<?=($tel==''?'':$tel)?>"  onblur="checktype(this.value,'cn-tel-zone','ls_tel');" />
					    </div>
					      <div id="ls_tel" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >手机：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="mobile" id="ls_mobile_cn-cell" size="16" maxlength="40" value="<?=($mobile==''?'':$mobile)?>"  onblur="checktype(this.value,'cn-cell','ls_mobile');" />
					    </div>
					      <div id="ls_mobile" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >邮箱：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="email" id="ls_email_email，qq" size="24" maxlength="40" value="<?=($email==''?'':$email)?>"  onblur="checktype(this.value,'email，qq','ls_email');" />
					    </div>
					      <div id="ls_email" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
					  <tr bgcolor='#f4f4f4'>
					    <td  height='40' style="padding-left:50px;" >QQ：</td>
					    <td  height='40' colspan="2" align='center' ><div style="float:left; margin-left:60px">
					      <input type="text" name="qq" id="ls_qq_styletype7" size="24" maxlength="40" value="<?=($qq==''?'':$qq)?>"  onblur="checktype(this.value,'styletype7','ls_qq');" />
					    </div>
					      <div id="ls_qq" style="float:left;width:200px; color:#C60; height:20px;" > </div></td>
				      </tr>
<? 
		break;

	}
?>
