僅允許本班同學編輯諸網頁。

"; if(!isset($_REQUEST['exec_type'])){echo $html1;} if(!class_exists('etable')){include_once CLASS_FILE_PATH."/database/etable.php";} $ET=new etable; $ET->loginTable=array('tableName'=>'6yearStudents','name'=>'name','psd'=>'psd','grp'=>'grp','canWorkGrp'=>'1'); $ET->sql[0]="select path,webContent from WebContent where path like '%".SITE."%' order by path"; $ET->editable=7; $ET->perpage=50; $ET->colAlias=array('path'=>'路徑','webContent'=>'內容'); $ET->formType=array('webContent'=>array('auto',array('wiki'))); $ET->search=array('path','webContent'); $ET->main(); if(isset($ET->checkin) && $ET->checkin==0){echo $nowMsg;} if(!isset($_REQUEST['exec_type'])){echo $html2;} ?>