chungwoo 发表于 2007 年 2 月 2 日 12:37:02

谁的php学好了替我看看

http://vshare.za.net/sig/

<?
include('include/config.php');
include('include/class_sql.php');

$data =new class_sql();
$data ->config();
$data ->connected();

?>

<html>
<head>
<META NAME="description" content="Welcome to Iweb.net.ru. You can create online signature. All free.">
<META NAME="keywords" content="bar signature, online signature,create signature, signature creater, signature generator,sigsmaker, sign generator, online bar signature">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Welcome To iweb.net.ru</title>
<script src="/thongke/?js" type="text/javascript"></script>
<style type="text/css">
<!--
img {
        border: none;
}
td {
       font-family:Tahoma;
       color: 4484EF;
       font-weight: bold;
       font-size: 12px;}
a {       
    font-family:Tahoma;
       color:4484EF;
       font-weight: bold;
       font-size: 12px;}
a:hover{
       font-family:Tahoma;
       color: 0F7C9D;
       font-weight: bold;
       font-size: 12px;}

       table .maintable,
tr          .maintable,
td          .maintable
{
        background: transparent;
        color: #222;
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
}

td .maintable
{
        padding: 4px 0 4px 6px;
}

form
{
        display: inline;
        margin: 0px;
        padding: 0px;
}

.textinput
{
        background-color: #FFFFFF;
        background-image: url(images/shadow.png);
        background-repeat: no-repeat;
        border: 1px dashed #2C2C2A;
        color: #222222;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        margin: 5px;
        padding: 2px;
        vertical-align: middle;
}

.button
{
        background-color: #FFFFFF;
        color: #2C2C2A;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        border: 1px solid #2C2C2A;
        vertical-align: middle;
        margin-bottom: 3px;
        _margin-bottom: 4px;
        margin-top: 4px;
        margin-left: 4px;
        _width: 160px;
}


-->
</style>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#EFEFEF">

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table3">
        <tr>
                <td>
                <p align="center"><font size="5">Signature Generator<br>
&nbsp; ;</font></td>
        </tr>
        </table>
       
<?include('./header.php'); ?>

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table2">
        <tr>
                <td>
                <div align="center">
                        <table border="0" width="70%" id="table4" cellpadding="0" cellspacing="0">
                                <form method="POST" id="signature">
                                       
                                        <tr>
                                                <td width="19%">&nbsp; ;</td>
                                                <td colspan="2">&nbsp; ;</td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right">Enter TEXT: </td>
                                                <td width="81%" colspan="2">
                                                <input type="text" name="text" size="35" class="textinput"value ="<?=$_POST['text']?>"><font color="#FF0000">ex
                                                : info@8892.net.ru</font></td>
                                        </tr>
                                        <tr>
                                                <td width="84%" align="right" valign="top" colspan="3">
                                                <p align="left">Choose Picture:</td>
                                        </tr>
                                        <tr>
                                                <td width="84%" align="right" valign="top" colspan="3">
                                                <table border="0" width="100%" id="table6" cellpadding="2">
                                                        <?
                                                        //select picture current
                                                                if (count($_POST['picture_id']) >0){
                                                                        $pic = $_POST['picture_id'];
                                                                        for ($i=0;$i<count($_POST['picture_id']);$i++){
                                                                                if ($pic[$i] != 0){
                                                                                $query ="SELECT * FROM images WHERE id=".$pic[$i];
                                                                                $current_pic = $data->one_rows($query);
                                                                                ?>
                                                                <tr>
                                                                <td width="22%" align="right">
                                                                Picture <?=$current_pic['id']?></td>
                                                                <td width="71%">
                                                                <img border="0" src="<?=$current_pic['images_url']?>" width="350" height="19"></td>
                                                                <td width="5%">
                                                                <input type="checkbox" name="picture_id[]" value="<?=$current_pic['id']?>" checked></td>
                                                                </tr>
                                                                        <?}}
                                                                }
                                                       
                                                        ?>
                                                        <?
                                               
                                                          $query ="SELECT * FROM images";
                                                          $total = $data->num_rows($query);
                                                          for ($i=count($pic);$i<10;$i++){
                                                          $ran = rand(0,$total);
                                                           $query ="SELECT * FROM images WHERE id =".$ran;
                                                                $sign = $data->one_rows($query);
                                                       ?>
                                                       
                                                        <tr>
                                                                <td width="22%" align="right">
                                                                Picture <?=$sign['id']?></td>
                                                                <td width="71%">
                                                                <img border="0" src="<?=$sign['images_url']?>" width="350" height="19"></td>
                                                                <td width="5%">
                                                                <input type="checkbox" name="picture_id[]" value="<?=$sign['id']?>"></td>
                                                        </tr>
                                                        <?}?>
                                                        <tr>
                                                                <td align="right" colspan="2"></td>
                                                                <td width="5%"></td>
                                                        </tr>
                                                        </table>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right">Another Picture: </td>
                                                <td width="78%" colspan="2">
                                               
                                                &nbsp; ;<select size="1" name="picture_id[]">
                                                <option value="0">Not Select </option>
                                                <? $query ="SELECT * FROM images";
                                                echo $query;
                                                   $query = $data->query($query);
                                                        while ($pic = $data->fetch_array($query)){

                                                ?>
                                                <option value="<?=$pic['id']?>"><?=$pic['id']?> </option>
                                                <?}?>
                                                </select>&nbsp; ;&nbsp; ;
                                                <a href="viewbar.php" target="_blank">
                                                <img border="0" src="./images/all.jpg" width="20" height="20">
                                                View Demo All Pic</a></td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right">Choose Font: </td>
                                                <td width="63%">
                                                &nbsp; ;<select size="1" name="font_id">
                                                <? $query ="SELECT * FROM font ORDER BY view DESC";
                                                echo $query;
                                                   $query = $data->query($query);
                                                        while ($font = $data->fetch_array($query)){
                                                        if ($font['id'] == $_POST['font_id']){
                                                ?>
                                                <option value="<?=$font['id']?>" selected><?=$font['name']?></option>
                                                <?}else{?>
                                                <option value="<?=$font['id']?>"><?=$font['name']?></option>
                                                <?}}?>
                                                </select></td>
                                                <td width="15%">&nbsp; ;</td>
                                        </tr>
                                        <tr>

                                                <td width="19%" align="right">Choose Color: </td>
                                                <td width="81%" colspan="2">
                                                &nbsp; ;<select size="1" name="zcolor" onchange='set_color(this.value)'>
                                                <option value="000000">Black</option>
                                                <option value="FFFFFF">While</option>
                                                <option value="008000">Green</option>
                                                <option value="800000">Maroon</option>
                                                <option value="808000">Olive</option>
                                                <option value="000080">Navy</option>
                                                <option value="800080">Purple</option>
                                                <option value="808080">Gray</option>
                                                <option value="FFFF00">Yellow</option>
                                                <option value="00FF00">Lime</option>
                                                <option value="00FFFF">Aqua</option>
                                                <option value="FF00FF">Fuchsia</option>
                                                <option value="C0C0C0">Slive</option>
                                                <option value="FF0000">Red</option>
                                                <option value="0000FF">Blue</option>
                                                <option value="008080">Teal</option>
                                                </select> OR Custom
                                                <script>
                                                function set_color(value){       
                                                        document.all.color1.value=value
                                                       
                                                }
                                        </script>
                                                <input type="text" name="color" size="10" id="color1"value ="<?=$_POST['color']?>"></td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right">X Position: </td>
                                                <td width="81%" colspan="2">
                                               
                                                <input type="text" name="x" size="20" class="textinput"value ="<?=$_POST['x']?>"><font color="#FF0000">&nbsp; ;ex
                                                : 100 </font></td>
                                        </tr>

                                        <tr>
                                                <td width="19%" align="right">Y Position: </td>
                                                <td width="81%" colspan="2">
                                                <input type="text" name="y" size="20" class="textinput" value ="<?=$_POST['y']?>"><font color="#FF0000">&nbsp; ;ex
                                                : 20</font></td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right">Angle: </td>
                                                <td width="81%" colspan="2">
                                                <input type="text" name="angle" size="20" class="textinput"value ="<?=$_POST['angle']?>"><font color="#FF0000">&nbsp; ;ex
                                                : 0</font></td>
                                        </tr>

                                        <tr>
                                                <td width="19%" align="right">Height: </td>
                                                <td width="81%" colspan="2">
                                                <input type="text" name="height" size="20" class="textinput" value ="<?=$_POST['height']?>"><font color="#FF0000">&nbsp; ;ex
                                                : 15</font></td>
                                        </tr>
                                        <tr>
                                                <td width="19%" align="right"></td>
                                                <td width="81%" colspan="2">
                                                <font color="red"> Thanks for your visiting
                                                </font></td>
                                        </tr>
                                        <? if (!empty($_POST['picture_id'])) {
                                        $picture = $_POST['picture_id'];
                                        for ($i=0;$i<count($picture);$i++){
                                        if ($picture[$i] != 0){
                                        ?>       

                                        <tr>
                                                <td width="19%" align="right">Result: </td>
                                                <td width="81%" colspan="2">
                                                <table border="0" width="100%" id="table7" cellpadding="2">
                                                        <tr>
                                                                <td>
                                                                <input type="image" border="0" src="sigsmaker.php?text=<?=$_POST['text']?>&picture_id=<?=$picture[$i]?>&font_id=<?=$_POST['font_id']?>&x=<?=$_POST['x']?>&y=<?=$_POST['y']?>&height=<?=$_POST['height']?>&angle=<?=$_POST['angle']?>&color=<?=$_POST['color']?>"></td>
                                                        </tr>
                                                </table>
                                                </td>
                                        </tr>
                                        <?}}}?>
                                        <tr>
                                                <td width="84%" align="right" colspan="3">
                                                <table border="0" width="100%" id="table5">
                                                        <tr>
                                                                <td width="193">&nbsp; ;</td>
                                                                <td>&nbsp; ;</td>
                                                                <td width="238">
                                                                <input type="submit" value="Create Now" name="B1" class="button"></td>
                                                        </tr>
                                                </table>
                                                </td>
                                        </tr>                                       
                                </form>
                        </table>
                </div>
                </td>
        </tr>
</table>
<?include('./footer.php');?>
</body>

</html>
</html>
</html>

vbvs 发表于 2007 年 2 月 2 日 12:38:54

我怎么越看越像HTML

姜运涛 发表于 2007 年 2 月 2 日 12:39:19

也不说你要干什么






.

chungwoo 发表于 2007 年 2 月 2 日 13:06:04

生成的图标出不来:L :L

http://vshare.za.net/sig/

hbxtjsl 发表于 2007 年 2 月 2 日 13:23:51

回复 #4 chungwoo 的帖子

bu neng da han zi :L

hotboy 发表于 2007 年 2 月 2 日 13:31:31

不懂啊,帮顶...........

redline 发表于 2007 年 2 月 2 日 13:41:30

sigsmaker.php was not found on this server

chungwoo 发表于 2007 年 2 月 2 日 14:13:32

解决了,谢谢关注...

waitme 发表于 2007 年 2 月 2 日 15:49:58

来晚了啊。.......

hbxtjsl 发表于 2007 年 2 月 2 日 17:42:44

chungwoo 水平见长...:o
页: [1] 2
查看完整版本: 谁的php学好了替我看看