?
Path : /home/admin/public_html/old/backoffice/process/ |
Current File : /home/admin/public_html/old/backoffice/process/send_member.php |
<?php $root_path="../"; include($root_path."header.php"); $db_tm = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false); $result = $db_tm->sql_query("select * from $TB where 0"); $numfields = $db_tm->sql_numfields($result); $first_fields = $db_tm->sql_fieldname($offset=0,$result); $var_arr=array($id,$uid,$pwd,$name,$mobile,$email,$point); if($flag=="add"){ $query_data=$db_tm->insert_data($TB,$result,$var_arr); echo "<script>window.close();window.parent.opener.parent.basefrm.location.href='list_data.php?TB=$TB&TBTH=$TBTH&selitem=$selitem';</script>"; } if($flag=="edit"){ $query_data=$db_tm->update_data($TB,$result,$var_arr,1,0); echo "<script>document.location.href='member.php?TB=$TB&TBTH=$TBTH&selitem=$selitem&flag=$flag&index_data=$id`';</script>"; } if($flag=="del"){ $del_arr=split('`',$index_data); for($i=0;$i<sizeof($del_arr)-1;$i++){ $sql_del = "delete from $TB where $first_fields ='".$del_arr[$i]."' "; $result_del = $db_tm->sql_query($sql_del); } echo "<script>parent.arr_data.length=0;document.location.href='list_data.php?TB=$TB&TBTH=$TBTH&selitem=$selitem';</script>"; } ?>