<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo base_url()?>theme/default/css/common.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>theme/default/chosen/chosen.css" rel="stylesheet" />
<script language="javascript" src="<?php echo base_url()?>theme/default/js/ajax.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/js/Common.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/js/jquery.min.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/js/tips.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/js/Float.js"></script>
<script src="<?php echo base_url()?>theme/default/js/jquery.artDialog.js?skin=default"></script>
<script src="<?php echo base_url()?>theme/default/js/iframeTools.js"></script>
</head>
<body> 

 <script language="JavaScript">
 <!-- 必填项提示
 function CheckInput()
 {
 if(document.getElementById('excelfile').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '未选择要导入的文件！'});document.getElementById('excelfile').focus();return false;}
 if(document.getElementById('User').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '未选择业务员！'});document.getElementById('User').focus();return false;}
 }
 -->
 </script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top" class="td_n pd10"> 
 <form name="importForm" action="<?php echo site_url('import/daoru/')?>" enctype="multipart/form-data" method="post" onSubmit="return CheckInput();">
 <table width="100%" border="0" cellspacing="0" cellpadding="0" CLASS="table_1">
 <col width="80" />
 <col width="380" />
 <col width="80" />
 <tr class="tr_t"> 
 <td class="td_l_l" COLSPAN="4"><B>外部 Excel 导入数据库</B></td>
 </tr>
 <tr>
 <td class="td_l_r title">上传文件</td>
 <td class="td_r_l"><input name="file" type="file" id="file" value="" maxlength="200" class="int" size="40">　<span class="info_help help01"> <B style="color:#ff0000">.xls</b> 格式
 </td>
 <td class="td_l_r title"></td>
 <td class="td_r_l"></td>
 </tr>
 <tr>
 <td class="td_l_r title">业务员</td>
 <td class="td_r_l">
     <select name='User' class='int'><option value="">请选择</option>
 <?php foreach($select_user as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>"><?php echo $row['name']?></option>
 <?php }?>
</select>
 
 <span class="info_help help01">默认导入到某人的记录中</span></td>
 <td class="td_l_r title"></td>
 <td class="td_r_l"></td>
 </tr>
 <tr>
 <td class="td_l_r title">注意事项</td>
 <td colspan="3" class="td_r_l" style="padding:5px 10px;"> 
 1、Excel文件仅支持 <B>Office Excel 2003</B>及<B>WPS</B>；<BR>
 2、时间格式标准：<B>1900-01-01</B>，不支持其它格式；<BR>
 3、邮编、手机、电话、传真 限数字：“<B>0 1 2 3 4 5 6 7 8 9</B>” 和 “<B>-</B>” ；<BR>
 4、地址、网址、Email 限 <B>255</B> 字节，主营、备注不限；其它所有内容限 <B>50</B> 字节。<BR>
 5、建议每次导入数据量在 <B style="color:red;">500</B> 条以内；<BR>
 6、Excel里面的 <B style="color:red;">公司名称</B> 为必填；<BR>
 </td>
 </tr>
 </table> 
 <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
 <tr>
 <td colspan="2">
 <input type="submit" name="Submit" class="btn2 btnbaoc" value=" 开始导入 "><a href='<?php echo base_url('data/ListKehu.xls')?>' target='_blank' class='btn2 btnsous' style='color:#fff;'>模板下载</a>　
 </td>
 </tr>
 </table> 
 </form>
 </td> 
 </tr>
</table> 


</body>
</html>