#関数読み込み define('LIBDIR', '../m/admin/_inc/'); define('MAXPAGE', '20'); define('MYPAGE', 'hyoukalist.php'); require_once( LIBDIR."config.php" ); require_once( LIBDIR."tool.php" ); require_once( LIBDIR."form.php" ); require_once( LIBDIR."data.php" ); require_once( LIBDIR."db.php" ); #宣言 $cnt=0; $msg=''; $errmsg=''; $msg=''; $table=''; $strwhere=''; $aid=fnc_get('aid'); $mode=fnc_get('mode'); $pageno=fnc_get('pageno'); $pgmsg=''; if (!is_numeric($pageno))$pageno=0; if ($pageno>0){ $pgmsg='<< 前へ'; } #db接続 db_open(); data_read(); function data_read(){ global $table,$strwhere,$aid,$pageno,$pgmsg; $ind=0; $sql="select count(*) from tbl_reqest "; $sql.=" where delflg!='1' and hyouka_flg ='d'"; $cnt=get_sqldata($sql); if ($cnt>(MAXPAGE*($pageno+1))){ $pgmsg.=' 次へ >>'; } $sql="select * from tbl_reqest "; $sql.=" where delflg!='1' and hyouka_flg='d' order by date_end desc "; $sql.=" LIMIT ".(MAXPAGE*$pageno).",".MAXPAGE; $result=db_rsopen($sql); while ($row=mysql_fetch_array($result)){ #HTMLデータ作成 $ind++; $table.=fnc_createtable($row,$ind); } } #HTMLデータ作成 function fnc_createtable($row,$ind){ global $p; $ret=''; #変数に格納 $auto_id=fnc_enc(dbdata_get($row["auto_id"])); $date_end=fnc_enc(dbdata_get($row["date_end"])); $hyouka_hoshi=fnc_enc(dbdata_get($row["hyouka_hoshi"])); $l1_naiyou=fnc_enc(dbdata_get($row["l1_naiyou"])); $hyouka_text=fnc_enc(dbdata_get($row["hyouka_text"])); if ($hyouka_hoshi=='1')$hyouka_hoshi='期待を大きく下回る ★☆☆☆☆'; if ($hyouka_hoshi=='2')$hyouka_hoshi='期待を下回る ★★☆☆☆'; if ($hyouka_hoshi=='3')$hyouka_hoshi='期待通り ★★★☆☆'; if ($hyouka_hoshi=='4')$hyouka_hoshi='期待を上回る ★★★★☆'; if ($hyouka_hoshi=='5')$hyouka_hoshi='期待を大きく上回る ★★★★★'; $date_end=str_replace("-","/",$date_end); $ret.='
![]() | '." \n";
$ret.=''.$hyouka_hoshi.' | '." \n";
$ret.='
![]() | '." \n";
$ret.=''.$date_end.' | '." \n";
$ret.='
![]() | '." \n";
$ret.=''.$l1_naiyou.' | '." \n";
$ret.='
![]() | '." \n";
$ret.=''.fnc_br($hyouka_text).' | '." \n";
$ret.='
カメラマン、カメラマン派遣、出張撮影に関する様々なご依頼に応じております。 |
|||||||
![]() ![]() |
|||||||
![]() |
|||||||
|
|||||||
![]() |
|||||||
![]() |