Exemple #1
0
 $m2pfilename = $rowdata[8];
 list($tid, $countno, $date, $time) = split("-", $m2pfilename);
 $tid = ereg_replace("[^0-9]", "", $tid);
 $path = ereg_replace("\\.m2p\$", "", $m2pfilename);
 $serveruri = getserverfqdn();
 print "</div>\n";
 //画像
 print "<img src='http://{$serveruri}{$httpmediamappath}/{$tid}.localized/img/{$path}/{$filename}' width='160' height='120' alt='{$tid}:{$countno}:{$filetid}' align=\"left\">\n";
 if (getform(preview) == 1) {
     //プレビュー表示
     // htmlspecialchars(stripslashes( ))
     $subject = getform(subject);
     $maintext = $_POST["textarea"];
     $maintext = pg_escape_string($maintext);
     //$maintext = mbereg_replace("\n","<br />\n", $maintext);
     $rate = getform(rank4);
     switch ($rate) {
         case -2:
             $ratechara = "× ";
             break;
         case -1:
             $ratechara = "▲ ";
             break;
         case 0:
             $ratechara = "− ";
             break;
         case 1:
             $ratechara = "★ ";
             break;
         case 2:
             $ratechara = "★★ ";
Exemple #2
0
    print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html lang=\"ja\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"graytable.css\"> ";
    print "<title>foltia:新規アカウント登録</title>\n</head>";
}
//end function printtitle()
printtitle();
?>
<body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" >

<p align="left"><font color="#494949" size="6">
新規アカウント登録
</font></p>
<hr size="4">
<?php 
//値取得
$username = getform(username);
$userpasswd = getform(userpasswd);
if ($username == "") {
    print "<p align=\"left\">新規アカウント登録をします。</p>\n";
} else {
    //すでにそのユーザが存在しているかどうか確認
    if ($username != "") {
        $query = "\nSELECT count(memberid)\nFROM foltia_envpolicy \nWHERE foltia_envpolicy.name  = ?  \n";
        //	$isaccountexist = m_query($con, $query, "DBクエリに失敗しました");
        $isaccountexist = sql_query($con, $query, "DBクエリに失敗しました", array($username));
        $isaccountexistncount = $isaccountexist->fetchColumn(0);
        if ($isaccountexistncount == 0) {
            //valid
        } else {
            $errflag = 1;
            $errmsg = "そのユーザ名は既に使われています。";
        }
            $mod = $i % 2;
            ++$i;
            if (!empty($r['status'])) {
                ?>
<tr><td width="10%" ><?php 
                if ($r['required']) {
                    ?>
<font color="red">*</font><?php 
                }
                echo $r["name"];
                ?>
</td><td width="90%" id="box_<?php 
                echo $r['field'];
                ?>
"><?php 
                echo getform($form, $r);
                ?>
</td></tr><?php 
            }
        }
    }
} else {
    echo "";
}
?>
</table><div id="bootline"></div><div id="btnbox" class="btn"><?php 
if ($vo['id'] != '') {
    ?>
<input TYPE="hidden" name="id" value="<?php 
    echo $vo["id"];
    ?>