<?php session_start();include_once("conn/conn.php"); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script src="js/check_submit.js"></script>
<script src="js/check_submit1.js"></script>
<script src="js/check_submit2.js"></script>
<script language="javascript">
    function open01(){
		if(kh.style.display=='')
		   kh.style.display='none';
		else if(kh.style.display=='none')
		   kh.style.display='';
	  } 
   
 function open02(){
		if(ts.style.display=='')
		   ts.style.display='none';
		else if(ts.style.display=='none')
		   ts.style.display='';
	  } 
 function open03(){
		if(cydy.style.display=='')
		   cydy.style.display='none';
		else if(cydy.style.display=='none')
		   cydy.style.display='';
	  } 
function open04(){
		if(file.style.display=='')
		   file.style.display='none';
		else if(file.style.display=='none')
		   file.style.display='';
	  } 

function mail_address(mail_address){
	var id;
	id=document.getElementById('touser').value;	//将提交的电话号赋给ID是touser的文本框

if(id==""){		//判断在文本框中是否存在重复的值
document.getElementById('touser').value=mail_address;
}else{
if(id.match(mail_address)!=null){
alert('该电话号码已经被添加！');
return false;
}
//如果文本框中有多个电话号码，则以*作为分隔符
document.getElementById('touser').value=id+'*'+mail_address;
}
return false;
}
</script>
<body>

 <table width="205" border="0" cellspacing="0" cellpadding="0">
 
                <tr> 
                  <td><img src="images/首页(1)_05.gif" width="205" height="31"></td>
                </tr>

                <tr> 
                  <td><img src="images/首页(1)_07.gif" width="205" height="28" border="0" onClick="javascript:open04();"></td>
                </tr>
</table>
<table width="205" border="0" cellpadding="0" cellspacing="0" id="file"
			
			  <?php
		
if(!($_GET[lmlb]=="客户信息管理" || $_GET[lmlb]=="同事信息管理"||$_GET[lmlb]=="常用短语管理" ||$_GET[lmlb]=="短信记录管理")){
			  ?>  style="display:none"
			  <?php
			  }
			  ?>  
			  >
       <tr> 
        <td height="28" align="center" valign="middle" background="images/1_06.gif">
                  <a href="indexs.php?lmbs=<?php echo $_GET[lmbs];?>&lmlb=客户信息管理" class="STYLE1">&nbsp;客户信息管理</a></td>
  </tr>
<tr> 
        <td height="28" align="center" background="images/1_06.gif">
	   	      <a href="indexs.php?lmbs=<?php echo $_GET[lmbs];?>&lmlb=同事信息管理" class="STYLE1">&nbsp;同事信息管理</a></td>
  </tr>
<tr> 
        <td height="28" align="center" background="images/1_06.gif">
	          <a href="indexs.php?lmbs=<?php echo $_GET[lmbs];?>&lmlb=常用短语管理" class="STYLE1">&nbsp;</a><a href="indexs.php?lmbs=<?php echo $_GET[lmbs];?>&lmlb=常用短语管理" class="STYLE1">常用短语管理</a></td>
  </tr>
<tr> 
        <td height="28" align="center" background="images/1_06.gif">
	      	   <a href="indexs.php?lmbs=<?php echo $_GET[lmbs];?>&lmlb=短信记录管理" class="STYLE1">短信记录管理</a></td>
  </tr>
</table>


 <table width="205" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><img src="images/首页(1)_09.gif" width="205" height="27" border="0" onClick="javascript:open01();"></td>
                </tr>
</table>
<table width="205" border="0" cellpadding="0" cellspacing="0" id="kh"
			  style="display:none" 
			  >
        <form name="form33">        
    <?php
$query0=mysql_query("select * from tb_customer");
$m=0;
while($myrow0=mysql_fetch_array($query0)){
	  ?>
    <tr> 
	  <td height="28" align="center" background="images/1_06.gif">
		<a  href="#" onClick=" return mail_address('<?php echo $myrow0[tb_customer_tel];?>')"><?php echo $myrow0[tb_customer_name];?></a>
&nbsp;<input name="<?php echo $myrow0[tb_customer_name];?>2" type="checkbox" id="mail_a[<?php echo $m;?>]" value="<?php echo $myrow0[tb_customer_tel];?>">&nbsp;&nbsp;</td>
        </tr>
  
<?php
$m++;
   }
	  ?>
<tr>
     <td height="24" align="center"><input type="submit" name="Submit0" class="buttoncss" value="提交" onClick=" return del(<?php echo $m;?>)">
       <input name="button" type=button class="buttoncss" onClick="alldel(<?php echo $m;?>)" value="全选">
<input type=button value="反选" class="buttoncss" onClick="overdel(<?php echo $m;?>)"></td>
     </tr>
</form> 
</table>


 <table width="205" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><img src="images/首页(1)_23.gif" width="205" height="27" border="0" onClick="javascript:open02();"></td>
                </tr>
</table>


<table width="205" border="0" cellpadding="0" cellspacing="0" id="ts"
			  style="display:none"
			  >
        <form name="form22">        
    <?php
$query1=mysql_query("select * from tb_colleague");
$n=0;
while($myrow1=mysql_fetch_array($query1)){		//读取数据库中的数据	
	  ?>
    <tr> 
	  <td height="28" align="center" background="images/1_06.gif">
		<a  href="#" onClick=" return mail_address('<?php echo $myrow1[tb_colleague_tel];?>')"><?php echo $myrow1[tb_colleague_name];?></a>
&nbsp;<input name="<?php echo $myrow1[tb_colleague_name];?>2" type="checkbox" id="mail_a1[<?php echo $n;?>]" value="<?php echo $myrow1[tb_colleague_tel];?>"></td>
<!--设置单个提交的超级链接，以及添加复选框，并为复选框赋值-->
        </tr>
  
<?php
$n++;
   }
	  ?>
<tr>
     <td height="25" align="center"><input type="submit" name="Submit1" class="buttoncss" value="提交" onClick=" return del1(<?php echo $n;?>)">
       <input name="button" type=button class="buttoncss" onClick="alldel1(<?php echo $n;?>)" value="全选">
<input type=button value="反选" class="buttoncss" onClick="overdel1(<?php echo $n;?>)"></td>
     </tr>
</form> 


</table>
<table width="205" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><img src="images/首页(1)_24.gif" width="205" height="28" border="0" onClick="javascript:open03();"></td>
                </tr>
</table>
<table width="205" border="0" cellpadding="0" cellspacing="0" background="images/bg_34.gif" id="cydy"
			  style="display:none">


  <form name="form00">        
    <?php
$query2=mysql_query("select * from tb_note_category");
$p=0;
while($myrow2=mysql_fetch_array($query2)){
	  ?>
    <tr> 
	  <td height="24" align="center" background="images/1_06.gif">
		<a  href="#" onClick=" return note_address('<?php echo $myrow2[tb_note_category_content];?>')"><?php echo $myrow2[tb_note_category_content];?></a>
&nbsp;<input name="<?php echo $myrow2[tb_note_category_class];?>2" type="checkbox" id="mail_a2[<?php echo $p;?>]" value="<?php echo $myrow2[tb_note_category_content];?>"></td>
    </tr>
  
<?php
$p++;
   }
	  ?>
<tr>
     <td height="24" align="center"><input type="submit" name="Submit22" class="buttoncss" value="提交" onClick=" return del2(<?php echo $p;?>)">
       <input name="button" type=button class="buttoncss" onClick="alldel2(<?php echo $p;?>)" value="全选">
<input type=button value="反选" class="buttoncss" onClick="overdel2(<?php echo $p;?>)"></td>
    </tr>
</form> 







      <tr> 
                  <td height="2" align="right"></td>
  </tr>
</table>



</body>
</html>
