Android社团活动设计界面图,基于Android的社团管理系统

require_once "conn.php";

session_start();

header("Content-type: text/html; charset=utf-8");

$act = $_POST['act'];

$id=$_GET["id"];

if($act == "xiugaihuodongact"){

$id=$_POST['id'];

//获取post传入的biaoti参数,并保存到$biaoti中

$biaoti = $_POST['biaoti'];

//获取post传入的neirong参数,并保存到$neirong中

$neirong = $_POST['neirong'];

//获取post传入的shetuan参数,并保存到$shetuan中

$shetuan = $_POST['shetuan'];

//获取post传入的shetuanid参数,并保存到$shetuanid中

$shetuanid = $_POST['shetuanid'];

mysql_query("update t_huodong set biaoti = '$biaoti',neirong = '$neirong',shetuan = '$shetuan',shetuanid = '$shetuanid' where id = $id");

echo "

alert('修改活动成功')

";}

$res = mysql_query("select * from t_huodong where id = $id");

$huodong = mysql_fetch_array($res);

?>

修改活动

修改活动

标题

内容

href="resource/simditor/styles/simditor.css" />

var editor = new Simditor({

textarea : $('#neirong'),

toolbar : ['title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale', 'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image', 'hr', '|', 'indent', 'outdent', 'alignment'],                                           //optional options

});

社团

                                           <?php

//查询所有社团

$res = mysql_query("select * from t_shetuan");

//循环展示查询出的内容

while ($row = mysql_fetch_array($res)){

//输出row['mingzi']

echo "".$row['mingzi']."";

}

?>                                                

$("#shetuan").val("<?php echo $huodong['shetuan'] ?>")

function shetuanchange(select){

$("#shetuanid").val($("#shetuanid option:eq("+select.selectedIndex+")").val());                                                  }

function GetQueryString(name) {

var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");

var r = window.location.search.substr(1).match(reg);

if (r!=) return (r[2]);

return ;

}

var shetuanid = GetQueryString("shetuanid");

if(shetuanid!=) {

$("#shetuanid").val(shetuanid);

var sel=document.getElementById("shetuanid");

var shetuanidselectedindex = sel.selectedIndex;

$("#shetuan").val($("#shetuan option:eq("+shetuanidselectedindex+")").val());

}                                                        

社团id

                                           <?php

//查询所有社团id

$res = mysql_query("select * from t_shetuan");

//循环展示查询出的内容

while ($row = mysql_fetch_array($res)){

//输出row['id']

echo "".$row['id']."";

}

?>                                                

$("#shetuanid").val("<?php echo $huodong['shetuanid'] ?>")

function shetuanchange(select){

$("#shetuanid").val($("#shetuanid option:eq("+select.selectedIndex+")").val());                                                  }

function GetQueryString(name) {

var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");

var r = window.location.search.substr(1).match(reg);

if (r!=) return (r[2]);

return ;

}

var shetuanid = GetQueryString("shetuanid");

if(shetuanid!=) {

$("#shetuanid").val(shetuanid);

var sel=document.getElementById("shetuanid");

var shetuanidselectedindex = sel.selectedIndex;

$("#shetuan").val($("#shetuan option:eq("+shetuanidselectedindex+")").val());

}                                                        

修改

2019 © qw. Pampered by qwbs

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值