ultimateweblogos.com Posted January 2, 2010 Share Posted January 2, 2010 here is a php code of index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href = "../../fonts.css" rel="stylesheet" type="text/css" /> <title>testing</title> <style type="text/css"> table.navbar td a{ display: block; width: 4px; height: 4px; padding: 4px; text-decoration: none; } body { background-color: #EFEFEF; } </style> <script type="text/javascript"> function clickBG(text){ var obj = document.getElementById('fontcolor'); obj.value = text; } function clickBG2(text){ var obj2 = document.getElementById('bgcolor'); obj2.value = text; } </script> </head> <body> <?php include "config.php"; if($_GET["dpic"]!=''){//deleting picture //unlink($_GET["dpic"]); //permission problem } ?> <table width="800" border="0" align="center" bgcolor="#FFFFFF" class="dabela2crna"> <tr> <td class="style17"></td> </tr> </table> <table width="800" border="0" align="center" bgcolor="#FFFFFF" class="dabela2crna"> <tr> <td width="364" valign="top"><?php echo('<form id="form1" name="form1" method="post" action="pictext.php">'); echo('<table width="40%" border="0" align="center">'); $i = 0; if (is_dir($font_dir)) { if ($dh = opendir($font_dir)) { while (($file = readdir($dh)) !== false) { $filetype = pathinfo($font_dir.$file); if($filetype['extension']=='png'){ $i++; if($filetype['filename']==$_GET["font"]) echo('<tr> <label> <td width="5%" valign="middle"><input name="radiobutton" type="radio" value="'.$filetype['filename'].'" checked="checked"/></label></td> <td width="95%"><img src = "'.$font_dir.$filetype['filename'].'.png"/></td> </tr>'); else echo('<tr> <label> <td width="5%" valign="middle"><input name="radiobutton" type="radio" value="'.$filetype['filename'].'" /></label></td> <td width="95%"><img src = "'.$font_dir.$filetype['filename'].'.png"/></td> </tr>'); } } } } echo('</table>'); if($i==0) echo('No fonts Installed!'); ?></td> <td width="426" valign="top"><span class="style15">Font size</span> <label> <?php if(isset($_GET["fontsize"])) $fontsize = $_GET["fontsize"]; else $fontsize = 30; ?> <input name="fontsize" type="text" value="<?=$fontsize?>" /> </label> <span class="style2">max font size is 200</span><br/> <label> <?php if(isset($_GET["pictext"])) $pictext = $_GET["pictext"]; else $pictext = ''; ?> <span class="style15">Text</span>: <input type="text" name="pictext" value = "<?=$pictext?>"/> </label> <span class="style2">max 50 char</span><br/> <span class="style15">Font color #</span> <label> <?php if(isset($_GET["fontcolor"])) $fontcolor= $_GET["fontcolor"]; else $fontcolor = '000000'; ?> <input name="fontcolor" type="text" id="fontcolor" value="<?=$fontcolor?>"/> </label> <table border="0" class="navbar"> <tr> <td bgcolor="#FFFFFF"><a href = "#" onclick="clickBG('FFFFFF');"></a></td> <td bgcolor="#000000"><a href = "#" onclick="clickBG('000000');"></a></td> <td bgcolor="#003300"><a href = "#" onclick="clickBG('003300');"></a></td> <td bgcolor="#006600"><a href = "#" onclick="clickBG('006600');"></a></td> <td bgcolor="#009900"><a href = "#" onclick="clickBG('009900');"></a></td> <td bgcolor="#00CC00"><a href = "#" onclick="clickBG('00CC00');"></a></td> <td bgcolor="#FF0000"><a href = "#" onclick="clickBG('FF0000')"></a></td> <td bgcolor="#FF3300"><a href = "#" onclick="clickBG('FF3300')"></a></td> <td bgcolor="#FF6600"><a href = "#" onclick="clickBG('FF6600')"></a></td> <td bgcolor="#FF9900"><a href = "#" onclick="clickBG('FF9900')"></a></td> <td bgcolor="#FFCC00"><a href = "#" onclick="clickBG('FFCC00')"></a></td> <td bgcolor="#FFFF00"><a href = "#" onclick="clickBG('FFFF00')"></a></td> </tr> <tr> <td bgcolor="#333333"><a href = "#" onclick="clickBG('333333')"></a></td> <td bgcolor="#000033"><a href = "#" onclick="clickBG('000033')"></a></td> <td bgcolor="#003333"><a href = "#" onclick="clickBG('003333')"></a></td> <td bgcolor="#006633"><a href = "#" onclick="clickBG('006633')"></a></td> <td bgcolor="#009933"><a href = "#" onclick="clickBG('009933')"></a></td> <td bgcolor="#00CC33"><a href = "#" onclick="clickBG('00CC33')"></a></td> <td bgcolor="#FF0033"><a href = "#" onclick="clickBG('FF0033')"></a></td> <td bgcolor="#FF3333"><a href = "#" onclick="clickBG('FF3333')"></a></td> <td bgcolor="#FF6633"><a href = "#" onclick="clickBG('FF6633')"></a></td> <td bgcolor="#FF9933"><a href = "#" onclick="clickBG('FF9933')"></a></td> <td bgcolor="#FFCC33"><a href = "#" onclick="clickBG('FFCC33')"></a></td> <td bgcolor="#FFFF33"><a href = "#" onclick="clickBG('FFFF33')"></a></td> </tr> <tr> <td bgcolor="#666666"><a href = "#" onclick="clickBG('333333')"></a></td> <td bgcolor="#000066"><a href = "#" onclick="clickBG('000033')"></a></td> <td bgcolor="#003366"><a href = "#" onclick="clickBG('003333')"></a></td> <td bgcolor="#006666"><a href = "#" onclick="clickBG('006633')"></a></td> <td bgcolor="#009966"><a href = "#" onclick="clickBG('009933')"></a></td> <td bgcolor="#00CC66"><a href = "#" onclick="clickBG('00CC33')"></a></td> <td bgcolor="#FF0099"><a href = "#" onclick="clickBG('FF0099')"></a></td> <td bgcolor="#FF3399"><a href = "#" onclick="clickBG('FF3399')"></a></td> <td bgcolor="#FF6699"><a href = "#" onclick="clickBG('FF6699')"></a></td> <td bgcolor="#FF9999"><a href = "#" onclick="clickBG('FF9999')"></a></td> <td bgcolor="#FFCC99"><a href = "#" onclick="clickBG('FFCC99')"></a></td> <td bgcolor="#FFFF99"><a href = "#" onclick="clickBG('FFFF99')"></a></td> </tr> <tr> <td bgcolor="#999999"><a href = "#" onclick="clickBG('999999')"></a></td> <td bgcolor="#000099"><a href = "#" onclick="clickBG('000099')"></a></td> <td bgcolor="#0000CC"><a href = "#" onclick="clickBG('0000CC')"></a></td> <td bgcolor="#006699"><a href = "#" onclick="clickBG('006699')"></a></td> <td bgcolor="#009999"><a href = "#" onclick="clickBG('009999')"></a></td> <td bgcolor="#00CC99"><a href = "#" onclick="clickBG('00CC99')"></a></td> <td bgcolor="#990099"><a href = "#" onclick="clickBG('990099')"></a></td> <td bgcolor="#993399"><a href = "#" onclick="clickBG('993399')"></a></td> <td bgcolor="#996699"><a href = "#" onclick="clickBG('996699')"></a></td> <td bgcolor="#999999"><a href = "#" onclick="clickBG('999999')"></a></td> <td bgcolor="#99CC99"><a href = "#" onclick="clickBG('99CC99')"></a></td> <td bgcolor="#99FF99"><a href = "#" onclick="clickBG('99FF99')"></a></td> </tr> </table> <span class="style15">Background color #</span> <label> <?php if(isset($_GET["bgcolor"])) $bgcolor= $_GET["bgcolor"]; else $bgcolor = 'FFFFFF'; ?> <input name="bgcolor" type="text" id="bgcolor" value="<?=$bgcolor?>"/> </label> <table border="0" class="navbar"> <tr> <td bgcolor="#FFFFFF"><a href = "#" onclick="clickBG2('FFFFFF');"></a></td> <td bgcolor="#000000"><a href = "#" onclick="clickBG2('000000');"></a></td> <td bgcolor="#003300"><a href = "#" onclick="clickBG2('003300');"></a></td> <td bgcolor="#006600"><a href = "#" onclick="clickBG2('006600');"></a></td> <td bgcolor="#009900"><a href = "#" onclick="clickBG2('009900');"></a></td> <td bgcolor="#00CC00"><a href = "#" onclick="clickBG2('00CC00');"></a></td> <td bgcolor="#FF0000"><a href = "#" onclick="clickBG2('FF0000')"></a></td> <td bgcolor="#FF3300"><a href = "#" onclick="clickBG2('FF3300')"></a></td> <td bgcolor="#FF6600"><a href = "#" onclick="clickBG2('FF6600')"></a></td> <td bgcolor="#FF9900"><a href = "#" onclick="clickBG2('FF9900')"></a></td> <td bgcolor="#FFCC00"><a href = "#" onclick="clickBG2('FFCC00')"></a></td> <td bgcolor="#FFFF00"><a href = "#" onclick="clickBG2('FFFF00')"></a></td> </tr> <tr> <td bgcolor="#333333"><a href = "#" onclick="clickBG2('333333')"></a></td> <td bgcolor="#000033"><a href = "#" onclick="clickBG2('000033')"></a></td> <td bgcolor="#003333"><a href = "#" onclick="clickBG2('003333')"></a></td> <td bgcolor="#006633"><a href = "#" onclick="clickBG2('006633')"></a></td> <td bgcolor="#009933"><a href = "#" onclick="clickBG2('009933')"></a></td> <td bgcolor="#00CC33"><a href = "#" onclick="clickBG2('00CC33')"></a></td> <td bgcolor="#FF0033"><a href = "#" onclick="clickBG2('FF0033')"></a></td> <td bgcolor="#FF3333"><a href = "#" onclick="clickBG2('FF3333')"></a></td> <td bgcolor="#FF6633"><a href = "#" onclick="clickBG2('FF6633')"></a></td> <td bgcolor="#FF9933"><a href = "#" onclick="clickBG2('FF9933')"></a></td> <td bgcolor="#FFCC33"><a href = "#" onclick="clickBG2('FFCC33')"></a></td> <td bgcolor="#FFFF33"><a href = "#" onclick="clickBG2('FFFF33')"></a></td> </tr> <tr> <td bgcolor="#666666"><a href = "#" onclick="clickBG2('333333')"></a></td> <td bgcolor="#000066"><a href = "#" onclick="clickBG2('000033')"></a></td> <td bgcolor="#003366"><a href = "#" onclick="clickBG2('003333')"></a></td> <td bgcolor="#006666"><a href = "#" onclick="clickBG2('006633')"></a></td> <td bgcolor="#009966"><a href = "#" onclick="clickBG2('009933')"></a></td> <td bgcolor="#00CC66"><a href = "#" onclick="clickBG2('00CC33')"></a></td> <td bgcolor="#FF0099"><a href = "#" onclick="clickBG2('FF0099')"></a></td> <td bgcolor="#FF3399"><a href = "#" onclick="clickBG2('FF3399')"></a></td> <td bgcolor="#FF6699"><a href = "#" onclick="clickBG2('FF6699')"></a></td> <td bgcolor="#FF9999"><a href = "#" onclick="clickBG2('FF9999')"></a></td> <td bgcolor="#FFCC99"><a href = "#" onclick="clickBG2('FFCC99')"></a></td> <td bgcolor="#FFFF99"><a href = "#" onclick="clickBG2('FFFF99')"></a></td> </tr> <tr> <td bgcolor="#999999"><a href = "#" onclick="clickBG2('999999')"></a></td> <td bgcolor="#000099"><a href = "#" onclick="clickBG2('000099')"></a></td> <td bgcolor="#0000CC"><a href = "#" onclick="clickBG2('0000CC')"></a></td> <td bgcolor="#006699"><a href = "#" onclick="clickBG2('006699')"></a></td> <td bgcolor="#009999"><a href = "#" onclick="clickBG2('009999')"></a></td> <td bgcolor="#00CC99"><a href = "#" onclick="clickBG2('00CC99')"></a></td> <td bgcolor="#990099"><a href = "#" onclick="clickBG2('990099')"></a></td> <td bgcolor="#993399"><a href = "#" onclick="clickBG2('993399')"></a></td> <td bgcolor="#996699"><a href = "#" onclick="clickBG2('996699')"></a></td> <td bgcolor="#999999"><a href = "#" onclick="clickBG2('999999')"></a></td> <td bgcolor="#99CC99"><a href = "#" onclick="clickBG2('99CC99')"></a></td> <td bgcolor="#99FF99"><a href = "#" onclick="clickBG2('99FF99')"></a></td> </tr> </table> <br/> <span class="style15">Text shadow :</span> <label><span class="style1"></span> <input name="radiobutton3" type="radio" value="0" <?php if($_GET["shadow"]==0 || !isset($_GET["shadow"])) echo('checked="checked"');?> /> <span class="style2">no</span></label> <label> <input name="radiobutton3" type="radio" value="1" <?php if($_GET["shadow"]==1) echo('checked="checked"');?>/> <span class="style2">yes</span></label><br/> <span class="style15">Picture border :</span> <label> <input name="radiobutton4" type="radio" value="0" <?php if($_GET["border"]==0 || !isset($_GET["border"])) echo('checked="checked"');?> /> <span class="style2">no</span></label> <label> <input name="radiobutton4" type="radio" value="1" <?php if($_GET["border"]==1 ) echo('checked="checked"');?>/> <span class="style2">yes</span></label><br/> <span class="style15">Move text up/down</span> <label> <select name="baseline"> <option value="0" <?php if($_GET["baseline"]==0 || !isset($_GET["baseline"])) echo('selected="selected"');?>>0</option> <option value="-0.05" <?php if($_GET["baseline"]==-0.05) echo('selected="selected"');?>>5</option> <option value="-0.1" <?php if($_GET["baseline"]==-0.1) echo('selected="selected"');?>>10</option> <option value="-0.15" <?php if($_GET["baseline"]==-0.15) echo('selected="selected"');?>>15</option> <option value="-0.20" <?php if($_GET["baseline"]==-0.20) echo('selected="selected"');?>>20</option> <option value="0.05" <?php if($_GET["baseline"]==0.05) echo('selected="selected"');?>>-5</option> <option value="0.1" <?php if($_GET["baseline"]==0.1) echo('selected="selected"');?>>-10</option> <option value="0.15" <?php if($_GET["baseline"]==0.15) echo('selected="selected"');?>>-15</option> <option value="0.20" <?php if($_GET["baseline"]==0.20) echo('selected="selected"');?>>-20</option> </select> </label> <span class="style2">%</span> <p><?php echo('<label> <input type="submit" name="Submit" value="Submit" /></label>'); echo('</form>');?></p></td> </tr> </table> </body> </html> index page looks like when the submit button is clicked it displays now can you edit the php code and provide 1)background image as option?so that when the output is displayed text should be written on that backgroung image... 2)one more text box(below the first text box) as option so that when user writes anything on the second text box and clicks the submit button,the second texts enterd should be on the second line(new line) below the first text ... 3)is it possible to provide an option to change only the fonts background (fonts background different from output image background) ... i hope any php godfather can do this task !!! can you be the one? Quote Link to comment https://forums.phpfreaks.com/topic/186956-i-think-you-can-solve-this-plz-give-a-try/ Share on other sites More sharing options...
wildteen88 Posted January 2, 2010 Share Posted January 2, 2010 If you want someone to do it for you post in the freelance forum. Have you made any effort to apply the changes you wish to make? Quote Link to comment https://forums.phpfreaks.com/topic/186956-i-think-you-can-solve-this-plz-give-a-try/#findComment-987276 Share on other sites More sharing options...
ultimateweblogos.com Posted January 2, 2010 Author Share Posted January 2, 2010 If you want someone to do it for you post in the freelance forum. Have you made any effort to apply the changes you wish to make? trust me i tried alot to apply the changes ....even now am working on this script....but still am confused.....help me guyzzz Quote Link to comment https://forums.phpfreaks.com/topic/186956-i-think-you-can-solve-this-plz-give-a-try/#findComment-987284 Share on other sites More sharing options...
RussellReal Posted January 2, 2010 Share Posted January 2, 2010 lol I'm really not SUPPOSED to advertise my services, so I won't.. but I do have a lovely signature. But that would probably be freelance more than phphelp Quote Link to comment https://forums.phpfreaks.com/topic/186956-i-think-you-can-solve-this-plz-give-a-try/#findComment-987301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.