File "setting.php"
Full path: /www/ansys/qgis/012_kawasaki/ds/setting.php
File size: 2.51 KiB (2568 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php
//===============================================
// HTML-HEAD-
// 備考 :
// 更新 : 2012/10/18 KMK-Teraoka
//===============================================
print "<html>";
print "<head>";
print "<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"/ansys/config/css/style.css\">";
print "<link rel=\"shortcut icon\" href=\"/ansys/config/favicon.ico\">";
print "<title>台数設定</title>";
print "</head>";
//■ファイルアップロードプログラム
//●ファイルを保存するディレクトリ
$save_dir = "/www/theta/picture/log/";
$enc_disp = "UTF-8"; // ブラウザ表示文字コード
$enc_file = "SJIS"; // 保存ファイル名文字コード
//●対象のフォルダを開く(アップロードしたファイルのあるフォルダ)
$res_dir = opendir($save_dir);
//print_r($_POST);
if($_POST['count'])
{
$fp = fopen("limit_count.txt","w");
fwrite($fp,$_POST['count']);
fclose($fp);
}
if($_POST['const'])
{
$fp = fopen("const_name.txt","w");
fwrite($fp,$_POST['const']);
fclose($fp);
}
$now_value_1 = file_get_contents("limit_count.txt");
$now_value_2 = file_get_contents("const_name.txt");
if(!strcmp('MP3',$now_value_1)) $selected_1 = "SELECTED";
if(!strcmp('MP2',$now_value_2)) $selected_2 = "SELECTED";
print "<h4>■本日の制限台数設定</h4>";
print "<FORM ACTION='setting.php' method='post'>";
print "<TABLE BORDER='1'><TR ALIGN='center'><TD></TD><TD width='150'>現在値</TD><TD width='150'>変更予定値</TD></TR>";
print "<TR ALIGN='center'><TD>";
print "本日の台数";
print "</TD>";
print "<TD>" .$now_value_1 ."</TD>";
print "<TD align='left'>";
print "<input type='text' size='2' name='count' value='" .$now_value_1 ."'>";
print "</TD></TR>";
/*
print "<TR ALIGN='center'><TD>";
print "工事名 ";
print "</TD>";
print "<TD>川崎港臨港道路東扇島水町線主橋脚部 (" .$now_value_2 .")橋梁下部工事</TD>";
print "<TD align='left'>";
print "<select name='const'>";
print "<option value='MP3' " .$selected_1 .">川崎港臨港道路東扇島水町線主橋脚部(MP3)橋梁下部工事</option>";
print "<option value='MP2' " .$selected_2 .">川崎港臨港道路東扇島水町線主橋脚部(MP2)橋梁下部工事</option>";
print "</select>";
*/
print "</TABLE>";
print "<BR>";
print "<input type='submit' style='width:100px;height:50px' value='変更'>";
print "<BR>";
print "<BR><BR><BR>";
print "</FORM>";
print "<BR>";
print "<BR>";
print "</html>";
?>