 <?php
    require_once '../service/CollegeInfoService.class.php';
    require_once '../phpbean/CollegeInfo.class.php';
    $collegeNumber = $_GET['collegeNumber'];
    $collegeInfoService = new CollegeInfoService();
    $collegeInfo = $collegeInfoService->GetCollegeInfo($collegeNumber);
 ?>
<html>
<head>
<title>查看学院信息</title>
<link href="/css/add_modify.css" rel="stylesheet" type="text/css" />
<script src="/js/util.js" type="text/javascript"></script>
<script src="../js/calendar.js"></script>
<script type="text/javascript">
        function CheckForm() {
            var re = /^[0-9]+.?[0-9]*$/;
            var resc=/^[1-9]+[0-9]*]*$/ ;
            var collegeName = document.getElementById("collegeName").value;
            if (collegeName == "") {
                alert("请输入学院名称...");
                document.getElementById("collegeName").focus();
                return false;
            }

            var collegeBirthDate = document.getElementById("collegeBirthDate").value;
            if (collegeBirthDate == "") {
                alert("请输入成立日期...");
                document.getElementById("collegeBirthDate").focus();
                return false;
            }

            document.forms[0].submit();
       } 
    </script>
</head>
<body>
	<div id="container">
		<div id="title">
			<table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
				<tr>
					<td height="21"><img src="../images/ico/ico29.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle">
					    <strong> 学院信息修改 </strong>
					</td>
				</tr>
			</table>
		</div>

		<div id="content">
			<form id="form1" method="post" action="/controller/CollegeInfoAction.php?action=update" enctype="multipart/form-data">
				<p>
					学院编号: &nbsp;
					<input id="collegeNumber" class="text" type="text" readOnly style="width: 200px" value="<?php echo $collegeInfo->getCOLLEGENUMBER()?>" name="collegeInfo[collegeNumber]" />
					<font color=red>*</font>
				</p>
				<p>
					学院名称: &nbsp;
					<input id="collegeName" class="text" type="text" style="width: 200px" value="<?php echo $collegeInfo->getCollegeName()?>" name="collegeInfo[collegeName]" />
					<font color=red>*</font>
				</p>
				<p>

					成立日期:&nbsp; <input id="collegeBirthDate" type="text" class="text" readonly id="collegeInfo[collegeBirthDate]" name="collegeInfo[collegeBirthDate]" value="<?php echo date("Y-m-d",strtotime($collegeInfo->getCollegeBirthDate()));?>" onclick="setDay(this);" />
					<font color=red>*</font>
				</p>
				<p>
					院长姓名: &nbsp;
					<input id="collegeMan" class="text" type="text" style="width: 100px" value="<?php echo $collegeInfo->getCollegeMan()?>" name="collegeInfo[collegeMan]" />
				</p>
				<p>
					联系电话: &nbsp;
					<input id="collegeTelephone" class="text" type="text" style="width: 200px" value="<?php echo $collegeInfo->getCollegeTelephone()?>" name="collegeInfo[collegeTelephone]" />
				</p>
				<p>
					附加信息: &nbsp;
					<input id="collegeMemo" class="text" type="text" style="width: 1000px" value="<?php echo $collegeInfo->getCollegeMemo()?>" name="collegeInfo[collegeMemo]" />
				</p>
			</form>
		</div>
	</div>
</body>
</html>
