<%@ page language="C#" autoeventwireup="true" inherits="admin_webinfo, App_Web_5fvwns4r" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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>
<title>上海和尘网站系统管理</title>
<link rel="stylesheet" href="style/css.css" type="text/css" /> 
<link rel="stylesheet" href="style/page.css" type="text/css" /> 

<script src="uploadify/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="uploadify/swfobject.js" type="text/javascript"></script>
<script src="uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="uploadify/uploadify.css" />

</head>
<body>
    <form id="form1" runat="server">


<table width="100%" border="0" cellpadding="0" cellspacing="0" class="map">
  <tr>
    <td>系统管理 &gt;&gt; 系统设置</td>
  </tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="title" align="center">
  <tr>
    <td>系统设置</td>
  </tr>
</table>
 


<table border="0" align="center" cellpadding="0" cellspacing="0" class="add">

    <tr>
      <td align="right" width="100">公司名称</td>
      <td align="left"><input runat="server" name="company" type="text" maxlength="255" class="input" id="company" style="width:400px;"/></td>
    </tr>
    <tr>
      <td align="right">地址</td>
      <td align="left"><input runat="server" name="address" type="text" maxlength="255" class="input" id="address" style="width:400px;"/></td>
    </tr>
    <tr>
      <td align="right">电话</td>
      <td align="left"><input runat="server" name="tel" type="text" maxlength="255" class="input" id="tel" style="width:400px;"/></td>
    </tr>
    <tr>
      <td align="right">传真</td>
      <td align="left"><input runat="server" name="fax" type="text" maxlength="255" class="input" id="fax" style="width:400px;"/></td>
    </tr>    
    <tr>
      <td align="right">Email</td>
      <td align="left"><input runat="server" name="email" type="text" maxlength="255" class="input" id="email" style="width:400px;"/></td>
    </tr>
    <tr>
      <td align="right">QQ</td>
      <td align="left"><input runat="server" name="qq" type="text" maxlength="255" class="input" id="qq" style="width:400px;"/></td>
    </tr>

    <tr>
      <td align="right">统计客服代码</td>
      <td align="left"><textarea runat="server" name="content" class="input" id="content" style="width:600px; height:50px;"></textarea></td>
    </tr>
      
    <tr> 
        <th width="100">网站logo：</th>
        <td><div style="float:left;"><input name="img1" runat="server" maxlength="100" type="text" class="input" id="img1" style="width:400px; margin-bottom:5px;" />      
        <br /> 
        <input id="file_upload" type="file" name="file_upload" />
        <div id="uploadfileQueue" style="padding: 3px;"></div>
        </div>
        <div style="float:left; margin-left:20px;"><span class="imgbox"><img height="50" runat="server" src="uploadify/empty.gif" id="pic" style="margin-top:0px;" /></span></div>
    </td>
    </tr>
      
        
    <tr>
      <td align="right">站点名称</td>
      <td align="left"><label>
        <input runat="server" name="name" type="text" class="input" id="name" style="width:400px;"/>
      </label>
      <span>网站的名称</span>
      </td>
    </tr>

    <tr>
      <td align="right">站点关键字</td>
      <td align="left"><label>
      	<textarea runat="server" name="keywords" class="input" id="keywords" style="width:600px; height:40px;"></textarea>
      </label>
      <span>网站关键字，网页SEO优化，多个用“,”号隔开</span>
      </td>
    </tr>
    
    <tr>
      <td align="right">站点描述</td>
      <td align="left"><label>
      	<textarea runat="server" name="description" class="input" id="description" style="width:600px; height:50px;"></textarea>
      </label>
      <span>网页SEO优化，网站的简单描述</span>
      </td>
    </tr>        
        
    <tr>
      <td align="right">邮箱SMTP</td>
      <td align="left"><input runat="server" name="smtp" type="text" maxlength="255" class="input" id="smtp" style="width:400px;"/> 例如：smtp.126.com</td>
    </tr>        
    <tr>
      <td align="right">邮箱用户名</td>
      <td align="left"><input runat="server" name="username" type="text" maxlength="255" class="input" id="username" style="width:400px;"/> 建议申请126或163邮箱，网站有留言，系统将把留言内容发送到你的邮箱</td>
    </tr>        
    <tr>
      <td align="right">邮箱密码</td>
      <td align="left"><input runat="server" name="pwd" type="text" maxlength="255" class="input" id="pwd" style="width:400px;"/></td>
    </tr>        
    <tr>
      <td align="right">留言收件箱</td>
      <td align="left"><input runat="server" name="email9" type="text" maxlength="255" class="input" id="email9" style="width:400px;"/></td>
    </tr>        
        
        
    <tr>
      <td align="right">&nbsp;</td>
      <td align="left" valign="middle"><asp:Button ID="Btn" runat="server" Text="提交" CssClass="btn" OnClick="Btn_Click" /></td>
    </tr>
  </table>


 
 
<!--#include file="footer.htm"-->


<script type="text/javascript">
        $(function(){
        $("#file_upload").uploadify({
        //开启调试
        'debug' : false,
        //是否自动上传
        'auto':true,
        'buttonText':'选择照片',
        //flash
        'swf': "uploadify/uploadify.swf",
        //文件选择后的容器ID
        'queueID':'uploadfileQueue',
        'uploader':'uploadify/upload.aspx',
        'width':'75',
        'height':'24',
        'multi':false,
        'fileTypeDesc':'支持的格式：',
        'fileTypeExts':'*.jpg;*.jpge;*.gif;*.png',
        'fileSizeLimit':'1MB',
        'removeTimeout':0.5,

        //返回一个错误，选择文件的时候触发
        'onSelectError':function(file, errorCode, errorMsg){
        switch(errorCode) {
        case -100:
        alert("上传的文件数量已经超出系统限制的"+$('#file_upload').uploadify('settings','queueSizeLimit')+"个文件！");
        break;
        case -110:
        alert("文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！");
        break;
        case -120:
        alert("文件 ["+file.name+"] 大小异常！");
        break;
        case -130:
        alert("文件 ["+file.name+"] 类型不正确！");
        break;
        }
        },
        //检测FLASH失败调用
        'onFallback':function(){
        alert("您未安装FLASH控件，无法上传图片！请安装FLASH控件后再试。");
        },
        //上传到服务器，服务器返回相应信息到data里
        'onUploadSuccess':function(file, data, response){
			   var img1=$("#img1").val();
			   $("#img1").val("upload/"+data);
			   $(".imgbox").css("display","");
			   $("#pic").attr("src",'../upload/'+data);
			   //$("#Btn").attr("disabled",false);
			   if(img1!="")
			       $.ajax({url:"uploadify/upload.aspx?action=delimg&img="+encodeURI(img1),async:false}).responseText;        
        }
        });
        });

      </script>


    </form>
</body>
</html>
