/******************************************************
' System :「きゃららFactory」作画スタッフ用ページ
' Content:似顔絵申込み写真表示
'******************************************************/
$top = '..';
$inc = "$top/inc";
include("$inc/login_check.php");
include("$inc/header.php");
$inc = "$top/../inc";
include("$inc/common.php");
include("$inc/database.php");
include("$inc/define.php");
include("$inc/format.php");
include("$inc/status.php");
include("inc.php");
// 送受信メール表示
function disp_mail($nigaoe_id) {
$sql = "SELECT lm_send_recv,lm_date,lm_from_addr,lm_to_addr,lm_subject,lm_body FROM l_mail WHERE lm_nigaoe_id=$nigaoe_id ORDER BY lm_mail_log_id";
$result = db_exec($sql);
$nrow = pg_num_rows($result);
for ($i = 0; $i < $nrow; $i++) {
$fetch = pg_fetch_object($result, $i);
if ($i != 0)
echo "
";
echo $fetch->lm_send_recv == 'R' ? "【受信】\n" : "【送信】\n";
echo 'Subject: ', htmlspecialchars($fetch->lm_subject), "\n";
echo 'From: ', htmlspecialchars($fetch->lm_from_addr), "\n";
echo 'To: ', htmlspecialchars($fetch->lm_to_addr), "\n";
echo 'Date: ', format_datetime($fetch->lm_date), "\n";
echo "\n";
echo htmlspecialchars($fetch->lm_body), "\n";
}
}
set_global('charara', '', 'きゃららFactory 似顔絵申込み写真参照', BACK_TOP);
// 写真画像URL取得
$url_photo = get_system_info('url_photo');
// 似顔絵画像URL取得
$url_nigaoe = get_system_info('url_nigaoe');
$sql = "SELECT nd_nigaoe_id,nd_random_id,nd_status,nd_completion_date,nd_nouki_date,nd_sex_code,nd_age,nd_photo_file,nd_nigaoe_file"
. " FROM t_nigaoe_data"
. " WHERE nd_nigaoe_id=$nigaoe_id";
$result = db_exec($sql);
if (pg_num_rows($result))
$fetch = pg_fetch_object($result, 0);
?>
=$g_title?>
page_header() ?>
page_footer() ?>