查看文件: edit_userdoc.php
大小: 1.54 KB
类型: application/octet-stream
<?php require('system/login.php'); ?> <?php require_once('../Connections/BE2.php'); ?> <?php if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE userdoc SET t3='%s' WHERE t1='%s'",$_POST['t3'],$_POST['t1'] ); mysql_select_db($database_BE2, $BE2); $Result1 = mysql_query($updateSQL, $BE2) or die(mysql_error()); } mysql_select_db($database_BE2, $BE2); //$query_Rt21 = "SELECT * FROM product_order_data WHERE 1 ORDER BY mem_auto DESC" ;//,$colname_Rt2 // t1 2 會員條款 $query_Rt2 = "SELECT * FROM userdoc WHERE t1=2 ";// 會員條款 $Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); //class="ckeditor" ?> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">編輯 會員條款</h3> </div> <form action="main.php?act=edit_userdoc" method="post" name="form1" id="form1"> <div class="form-group"> <textarea class="form-control" rows="10" name="t3" id="t3"> <?= $row_Rt2['t3']; ?> </textarea> </div> <input type="submit" value="更新記錄" /> <input type="hidden" name="t1" id="t1" value="<?= $row_Rt2['t1']; ?>" /> <input type="hidden" name="MM_update" value="form1" /> <input name="url" type="hidden" id="url" value="<? echo $_SERVER['HTTP_REFERER'];?>" /> </form> </div> </div> </div> <?php mysql_free_result($Rt2); ?>
保存
取消
返回文件列表