Example #1
0
function iframe()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $head = $tpl->Heads();
    $user = new user($_SESSION["uid"]);
    $html = "\n\t{$head}\n\t<body style='margin:0px;padding:0px;background:none'>\n\t<span style='font-size:16px;font-weight:bold'>{$_GET["Photo_error"]}</span>\n\t<form method=\"post\" enctype=\"multipart/form-data\" action=\"{$page}\">\n\t<input type='hidden' name='uid' value='{$_SESSION["uid"]}'>\n\t{$hidden}\n\t<p>\n\t\t<input type=\"file\" name=\"photo\" size=\"30\">\n\t\t<div style='width:100%;text-align:right'><input type='submit' name='upload' value='{upload file}&nbsp;&raquo;' style='width:200px'></div>\n\t</p>\n\t</form>\n\t<center>\n\t<center style='margin:10px;padding:5px;border:1px solid #005447;width:120px'>\n\t<img src='{$user->img_identity}'>\n\t</center>\n\t</center>\n\t</body>\n\t</html>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}