日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

phpcms毛遂

發布時間:2023/12/10 php 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 phpcms毛遂 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.showmessage()showmessage(L('operation_success'),'?m=link&c=link&a=edit','', 'edit');edit==>關閉對象showmessage(L('operation_failure'));showmessage(L('operation_false'),HTTP_REFERER);2.formValidator3.update()$data=array('nickname'=>$_POST['nickname'],'contact'=>$_POST['contact'],'content'=>$_POST['content'],'posttime'=>time(),'checkinfo'=>$checkinfo);$result=$this->db->update($data,"id={$id}");$result=$this->db->delete("id={$_GET['id']}");$insert_id=$this->db->insert($data,true);4.數據表名5.listinfo()6.對話框function edit(id) {window.top.art.dialog({id:'edit'}).close();window.top.art.dialog({title:'編輯留言'+' ',id:'edit',iframe:'?m=board&c=board&a=edit&id='+id,width:'700',height:'450'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});}function replay(id) {window.top.art.dialog({id:'replay'}).close();window.top.art.dialog({title:'回復留言'+' ',id:'replay',iframe:'?m=board&c=board&a=replay&id='+id,width:'450',height:'200'}, function(){var d = window.top.art.dialog({id:'replay'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'replay'}).close()});}7.改變狀態的ajax//傳id和值function check(id,checkinfo){$.ajax({type:"get",url:"?m=board&c=board&a=check",data:{id:id,checkinfo:checkinfo},dataType:"json",success:function(data){window.location="?m=board&c=board&a=init";}})}public function check(){if($_GET['checkinfo']=="true"){$checkinfo="false";}else{$checkinfo="true";}$data=array("checkinfo"=>$checkinfo);$result=$this->db->update($data,"id={$_GET['id']}");if($result){echo "1";}}7.刪除全部<a href='?m=board&c=board&a=delete&id=<?php echo $info['id']?>' onClick="return confirm('<?php echo L('confirm', array('message' =>$info['id']))?>')">刪除</a> public function delete(){if(!is_array($_POST['id'])){$result=$this->db->delete("id={$_GET['id']}");if($result){showmessage(L('operation_success'),HTTP_REFERER);}else{showmessage(L('operation_failure'),HTTP_REFERER);}}else{foreach($_POST['id'] as $k=>$smple_id){$result=$this->db->delete("id={$smple_id}");if(!$result){showmessage(L('operation_failure'),HTTP_REFERER);}}showmessage(L('operation_success'),HTTP_REFERER);}}8.排序<input name="dosubmit" type="submit" class="button" onClick="document.myform.action='?m=board&c=board&a=listorder'" value="<?php echo L('listorder')?>">//更新排序public function listorder() {if(isset($_POST['dosubmit'])) {foreach($_POST['listorders'] as $id => $orderid) {$orderid= intval($orderid);$this->db->update(array('orderid'=>$orderid),array('id'=>$id));}showmessage(L('operation_success'),HTTP_REFERER);} }

?

總結

以上是生活随笔為你收集整理的phpcms毛遂的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。