Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/tnewa.php
<?

if($Save == "Save"){
	if($filename != ""){
	$fp = fopen("templates/".$filename.".php","w");
fwrite($fp,"<? \n\nif(\$edittemplate == \"edit\"){\nheader(\"Location: tedita.php?filename=\".\$filename); \nexit;\n}\n\$tnotes=\"".$tnotes."\";\n\$filename=\"".$filename."\"; \n\$hCellPadding=\"".$hCellPadding."\"; \n\$hWidth=\"".$hWidth."\"; \n\$cCellPadding=\"".$cCellPadding."\"; \n\$cWidth=\"".$cWidth."\"; \n\n\$avisited=\"".$avisited."\"; \n\$ahover=\"".$ahover."\"; \n\$alink=\"".$alink."\"; \n\$aactive=\"".$aactive."\"; \n\$dStamp=\"".$dStamp."\"; \n\n\$additonal=\"".$additional."\"; \n\n\$menubar=\"".$menubar."\"; \n\n\$submenu=\"".$submenu."\"; \n\n\$header=\"".$header."\"; \n\n\$txtinput=\"".$txtinput."\"; \n\n\$submitbtn=\"".$submitbtn."\"; \n\n\$infotable=\"".$infotable."\"; \n\n\$footertable=\"".$footertable."\"; \n\n\$multiline=\"".$multiline."\"; \n\n\$body=\"".$body."\"; \n\n\$teditmode=\"1\"; ?> \n\n <style type=\"text/css\"> \n\n<!--\n\nA:visited {<?=\$avisited?>} \nA:hover {<?=\$ahover?>} \nA:link {<?=\$alink?>} \nA:active {<?=\$aactive?>} \n\n.menubar {<?=\$menubar?>} \n\n.submenu {<?=\$submenu?>} \n\n.header {<?=\$header?>} \n\n.txtinput {<?=\$txtinput?>} \n\n.submit {<?=\$submitbtn?> } \n\n.infotable {<?=\$infotable?> } \n\n.footertable { <?=\$footertable?> } \n\n.multiline {<?=\$multiline?>} \n\nbody {<?=\$body?>} \n\n.commenttitle { <?=\$commenttitle?> } \n\n.commentpost { <?=\$commentpost?>} \n\n-->\n</style>");
	header("Location: tdesign.php");
	exit;
fclose($fp);
 } 
 }
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
@extract(mysql_fetch_array($result));
if ((!check_flag('O')) && (!check_flag('S')) && (!check_flag('A'))) {
	header('Location: error.php?error='.urlencode("You do not have the credentials to access the template designer."));
exit;
}

mysql_close($dbconn); 
include('header.php'); ?> <br>
<br>
<form name="form1" method="post" action="tnewa.php">
<table width="75%" align="center" cellpadding="<?=$hCellPadding?>">
    <tr> 
      <td valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td valign="top" class="infotable"><p><?=$langop_templatea_title?> (<a href="tnew.php"><?=$langop_templatea_title2?></a>)</p>
              </td>
          </tr>
          <tr> 
            <td valign="top" class="header"><b><?=$langop_templatec_title?></b></td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" class="infotable">
                <tr> 
                  <td height="34"><font face="Arial, Helvetica, sans-serif" size="-1"><?=$langop_templatec_filen?> <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?=$langop_templatec_filen2?></font></td>
                </tr>
                <tr> 
                  <td> <p><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">&nbsp; 
                      </font><font face="Arial, Helvetica, sans-serif"> 
                      <input name="filename" type="text" class="txtinput" id="filename" style="font-color:red;" size="40">
                      .php </font></p></td>
                </tr>
                <tr> 
                  <td><p><?=$langop_templatec_notes?> (<a href="#" onClick="openWindow('niftyusage.php', 500, 300); return false"><?=$langop_common_niftytoo?></a>)<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em><?=$langop_templatec_author?></em></p></td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">&nbsp; 
                    <textarea name="tnotes" cols="40" rows="5" class="multiline" id="tnotes" style="font-color:red;"><?=$tnotes?></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td> <font color="#FFFFFF">&nbsp; </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td class="infotable"><em><?=$langop_templatea_disc?></em></td>
          </tr>
          <tr> 
            <td class="header"><b><?=$langop_install_general?></b></td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" class="infotable">
                <tr> 
                  <td class="header"><strong><?=$langop_templatec_htables?></strong></td>
                </tr>
                <tr class="infotable"> 
                  <td><?=$langop_templatec_cellpad?></td>
                </tr>
                <tr class="infotable"> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    <input name="hCellPadding" type="text" id="hCellPadding" size="40" class="txtinput">
                    </font></td>
                </tr>
                <tr class="infotable"> 
                  <td><?=$langop_templatec_twidth?></td>
                </tr>
                <tr class="infotable"> 
                  <td><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <input name="hWidth" type="text" id="eaddr233" size="40" class="txtinput">
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td class="header"><strong><?=$langop_templatec_tsettings?></strong></td>
                </tr>
                <tr class="infotable"> 
                  <td height="20"><?=$langop_templatec_cellpad?></td>
                </tr>
                <tr class="infotable"> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    <input name="cCellPadding" type="text" id="eaddr2322" size="40" class="txtinput">
                    </font></td>
                </tr>
                <tr class="infotable"> 
                  <td><?=$langop_templatec_twidth?></td>
                </tr>
                <tr class="infotable"> 
                  <td><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <input name="cWidth" type="text" id="eaddr233" size="40" class="txtinput">
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td class="header"><strong><?=$langop_templatec_linkinfo?></strong></td>
                </tr>
                <tr> 
                  <td>A: Visited</td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <input name="avisited" type="text" class="txtinput" id="avisited" size="40">
                    </font></td>
                </tr>
                <tr> 
                  <td height="20">A: Hover</td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> 
                    <input name="ahover" type="text" class="txtinput" id="filename3" size="40">
                    </font></td>
                </tr>
                <tr> 
                  <td>A: Link</td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <input name="alink" type="text" class="txtinput" id="filename4" size="40">
                    </font></td>
                </tr>
                <tr> 
                  <td height="21">A: Active</td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> 
                    <input name="aactive" type="text" class="txtinput" id="filename5" size="40">
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td class="header"><strong><?=$langop_install_miscsettings?></strong></td>
                </tr>
                <tr class="infotable"> 
                  <td><?=$langop_templatec_datestamp?></td>
                </tr>
                <tr class="infotable"> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    <input name="dStamp" type="text" id="eaddr222222" size="40" class="txtinput">
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td><?=$langop_templatec_addcss?></td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="additional" cols="40" rows="5" class="multiline" id="aactive"></textarea>
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.menubar </strong>(<?=$langop_templatea_navibar?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="menubar" cols="40" rows="5" class="multiline" id="okurl2"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.submenu </strong>(<?=$langop_templatea_submenus?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="submenu" cols="40" rows="5" class="multiline" id="submenu"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.header </strong>(<?=$langop_templatea_header?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="header" cols="40" rows="5" class="multiline" id="textarea2"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.txtinput </strong>(<?=$langop_templatea_txtinput?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="txtinput" cols="40" rows="5" class="multiline" id="textarea3"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.submit </strong>(<?=$langop_templatea_submitb?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="submitbtn" cols="40" rows="5" class="multiline" id="textarea4"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.infotable </strong>(<?=$langop_templatea_infotable?>)</td>
          </tr>
          <tr> 
            <td valign="top"> <table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="infotable" cols="40" rows="5" class="multiline" id="textarea5"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.footertable</strong> (<?=$langop_templatea_footer?>)</td>
          </tr>
          <tr> 
            <td valign="top"><table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="footertable" cols="40" rows="5" class="multiline" id="textarea6"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.multiline</strong> (<?=$langop_templatea_listbox?>)</td>
          </tr>
          <tr> 
            <td valign="top"><table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="multiline" cols="40" rows="5" class="multiline" id="textarea7"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;<font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.commenttitle</strong> (<?=$langop_templatea_titlebarc?>)</td>
          </tr>
          <tr> 
            <td valign="top"><table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="commenttitle" cols="40" rows="5" class="multiline" id="textarea9"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>.commentpost</strong> (<?=$langop_templatea_atitlebar?>)</td>
          </tr>
          <tr> 
            <td valign="top"><table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="commentpost" cols="40" rows="5" class="multiline" id="textarea10"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif">&nbsp; 
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td valign="top" class="header"><strong>body</strong> (<?=$langop_templatea_body?>)</td>
          </tr>
          <tr> 
            <td valign="top"><table width="75%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
                <tr> 
                  <td><font size="-1" face="Arial, Helvetica, sans-serif"><?=$langop_templatea_typecss?></font></td>
                </tr>
                <tr> 
                  <td height="24"><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    &nbsp; 
                    <textarea name="body" cols="40" rows="5" class="multiline" id="textarea8"></textarea>
                    </font></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td><font color="#FFFFFF" size="-1" face="Arial, Helvetica, sans-serif"> 
                    <input name="Save" type="submit" id="Save4" value="Save" class="submit">
                    </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <div align="left"> </div>
      </td>
    </tr>
  </table>
</form>
</body>
<?
mysql_close($dbconn);
 include('footer.php'); ?>
Return current item: OekakiPoteto