Location: PHPKode > projects > infoboard > infoboard/_class/formicon.php
<?
	 function formicon($iconcount){
		   global $iscon;
		   global $infoboard;
		   if(!$iscon["idadmin"]) return $infoboard->formadmin();
		   $print="";
		   $print.= "<br class=\"clear-all\" />\n";
		   $print.= "<div id=\"tabgroup\"><strong>".$iscon["lang"][26]."</strong></div>\n";
		   $print.= "<br class=\"clear-all\" />\n";
		   $print.= "<form name=\"setting\" action=\"./_req/saveicon.php\" method=\"post\" enctype=\"multipart/form-data\">";
		   $print.= "<label>\n";
		   for($i=1; $i<=$iconcount; $i++){
			     if(file_exists("./data/icon/i".$i.".gif")){
					  $print.= "<a onclick=\"return rusure();\" title=\"".$iscon["lang"][24]."\" href=\"./_req/delete.php?action=delicon&cid=".$i."\">";
					  $print.= "<img src=\"./data/icon/i".$i.".gif\" border=\"0\" /></a>\n";
				 }
		   }
		   $print.= "</label>\n";
		   $print.= "<br class=\"clear-all\" />\n";

		   for($i=1; $i<=4; $i++){
			    $print.= "<label>\n<input name=\"image".$i."\" type=\"file\" id=\"image".$i."\" size=\"15\" class=\"input\" /></label>\n\n";
		   }

		   $print.= "<br class=\"clear-all\" />\n";
		   $print.= " * ".$iscon["lang"][27]." (.gif) \n";
		   $print.= "<br class=\"clear-all\" />\n";
		   $print.= "<br class=\"clear-all\" />\n";
		   $print.= "<label><p><input type=\"submit\" name=\"submit\" value=\"Submit\" /> \n";
		   $print.= "<input type=\"button\" value=\"Cancel\" onclick=\"javascript:history.back();\" /></p>\n";
		   $print.= "</label>\n";

		   $print.= "</form>";
		    $print.= "<br class=\"clear-all\" />\n";
		   return $print;
     }

?>
Return current item: infoboard