Example #1
0
						技术支持:<span>  21度传媒有限公司	</span>
					</p>                
					</div>
					<div class="sidebar_box_bottom"></div>
				</div>
				
			</div>
			<div  class="right_content">
				           
			<h2>用户管理</h2> 
			<hr/>					
			<br/>
			<?php 
$pdo = new PdoMySQL();
$sql = "SELECT * FROM  admin WHERE id = 1";
$res = $pdo->getRow($sql);
?>

			<h2>修改用户信息</h2>
			<form action="doAction.php?table=admin" method="POST" >
                <p>用 户 名 :<input type="text" id="username" name="username" class="add_bar" value="<?php 
echo $res[username];
?>
"></p>
                <p>新 密 码 :<input type="password" id="password1" name="password1" class="add_bar" ?></p>
                <p>确认密码:<input type="password" id="password2" name="password2" class="add_bar" ?></p>
     
                <p><input type="submit" id="submit" name="submit" value="修改" onclick="return checkform()"></p>
            </form>
			
			</div>
Example #2
0
        <br style="clear: left" />
    </div> <!-- end of templatemo_menu -->

   
    <div id="templatemo_main">  
    <p>你现在的位置是:<a href="index.php">首页</a> > <a href="index_CYZC.php">创业政策</a></p>
    <hr style="border : 1px dashed #036"/>
    <br/>
    <?php 
require_once 'admin/include.php';
$id = htmlspecialchars(trim($_GET["id"]));
$pdo = new PdoMySQL();
if (!empty($id)) {
    $sql = "SELECT * FROM  `index_CYZC` WHERE  id = {$id}";
    $row = $pdo->getRow($sql);
    $title = $row['title'];
    $author = $row['author'];
    $times = $row['times'];
    $content = $row['content'];
    $url = $row['url'];
    $size = $row['size'];
    ?>

            <h3 align="center"><?php 
    echo $title;
    ?>
</h3>
            <p  align="center" >发布时间:<?php 
    echo $times;
    ?>
Example #3
0
            <hr />
            <p>&nbsp;</p>

			<h2>内容查看
            </h2>
       
            <table width="100%" border="1" style="text-align:center">

                <tr>
                    <th>标题</th><th>发布时间</th>
                </tr>
                <?php 
// --id-- content-- times --
$pdo = new PdoMySQL();
$sql = "SELECT * FROM `YQ_about`";
$result = $pdo->getRow($sql);
$times = $result['times'];
if ($result != 0) {
    ?>
                    <tr>
                        <td><a href="../YQ_about.php" target="_blank">园区简介</a></td>
                        <td><?php 
    echo $times;
    ?>
</td>
                    </tr>
              <?php 
}
?>
            </table>
Example #4
0
	</script>

<?php 
}
?>




<?php 
//创业工厂---入驻通知
if ($table == 'CY_news') {
    ////改变文件操作权限并删除
    $pdo = new PdoMySQL();
    $sql = "select path from CY_news where id = '{$id}'";
    $file = $pdo->getRow($sql);
    if (file_exists($file['path'])) {
        chmod($file['path'], 0777);
        unlink($file['path']);
    }
    //删除数据库内容
    $sql = "delete from CY_news where id='{$id}' limit 1";
    $pdo->execute($sql);
    ?>

	<script type="text/javascript" language="javascript">
		window.location.href="CY_news.php";
	</script>

<?php 
}