Duyuruyu Kapat
Facebook Gözat
Twitter Gözat

bütün formları doldurduğum halde doldurmadınız diyor nasıl çözebilirim

Konu, 'PHP' kısmında HooLiGaN tarafından paylaşıldı.

  1. HooLiGaN

    HooLiGaN Yeni Üye

    Kayıt:
    4 Nisan 2008
    Mesajlar:
    20
    Beğenilen Mesajlar:
    0
    arkadaşlar elimde bi emlak scripit var bende bi uğraşıyım dedim ama emlak eklerken
    semt i yazsam bile bütün alanları doldurun diyo halbusiki doldurduk :) nasıl yapabilirm bu hatayı ?
     
  2. ozguraybar2

    ozguraybar2 Aktif Üye

    Kayıt:
    17 Eylül 2007
    Mesajlar:
    473
    Beğenilen Mesajlar:
    0
    Meslek:
    Öğrenci
    Şehir:
    Denizli
    kodlar???????????
     
  3. HooLiGaN

    HooLiGaN Yeni Üye

    Kayıt:
    4 Nisan 2008
    Mesajlar:
    20
    Beğenilen Mesajlar:
    0
    Kod:
     <? include("include/escape.php");?>
    <? include("include/all.php");?>
    <? include("include/lang.php");?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?=(str_replace('"', """,stripslashes($SiteTitle)))?></title>
    <META NAME="keywords" CONTENT="<?=(str_replace('"', """,stripslashes($SiteKeywords)))?>">
    <META NAME="description" CONTENT="<?=(str_replace('"', """,stripslashes($SiteDesicription)))?>">
    <style type="text/css">
    <!--
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    -->
    </style>
    <link href="style/style.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" src="js/lib.js"></script>
    <script language='JavaScript'>
    <!--
    function frmSubmitEstate() {
        var frm = document.frmEstate;
        Error = "";
        validateZeroOne(frm.EstateCity, '<?=($_SESSION['QuestionSelectCity'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateTownShipID, '<?=($_SESSION['QuestionSelectTownShip'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateStatus, '<?=($_SESSION['QuestionEstateStatus'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateType, '<?=($_SESSION['QuestionEstateType'])?>');
        if (Error=='')
        validateZeroOne(frm.WarmingSystem, '<?=($_SESSION['QuestionWarmingSystem'])?>');
        if (Error=='')
        validateZeroOne(frm.Ground, '<?=($_SESSION['QuestionGround'])?>');
        if (Error=='')
        validateZeroOne(frm.RoomType, '<?=($_SESSION['QuestionRoomType'])?>');
        if (Error=='')
        validateZeroOne(frm.FlatItem, '<?=($_SESSION['QuestionFlatItem'])?>');
        if (Error=='')
        validateZeroOne(frm.CurrentFlat, '<?=($_SESSION['QuestionCurrentFlat'])?>');
        if (Error=='')
        validateZero(frm.RentPrice, '<?=($_SESSION['QuestionRentPrice'])?>');
        if (Error=='')
        validateZeroOne(frm.RentCurrency, '<?=($_SESSION['QuestionRentCurrency'])?>');
        if (Error=='') {
            if (document.frmEstate.DepositPrice.value != 0) {
                validateZeroOne(frm.DepositCurrency, '<?=($_SESSION['QuestionRentCurrency'])?>');
                }
            }
    
        if (Error=='')
        validateNotEmpty(frm.Image1, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image2, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image3, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image4, '<?=($_SESSION['QuestionImage'])?>');
    
        if (Error=='')
        validateNotEmpty(frm.FirstLastName, '<?=($_SESSION['QuestionFirstLastName'])?>');
        if (Error== '')
        validateNotEmpty(frm.Phone, '<?=($_SESSION['QuestionPhone'])?>');
        if (Error== '')
        validateEmail(frm.Email, '<?=($_SESSION['QuestionEmail'])?>');
        if (Error== '')
        validateNotEmpty(frm.Messages, '<?=($_SESSION['QuestionMess'])?>');
        if (Error== '')
        validateNotEmpty(frm.image_text, '<?=($_SESSION['QuestionConfirmCode'])?>');
        if (Error== '')
        validateNotEmpty(frm.image_text, '<?=($_SESSION['QuestionConfirmCode'])?>');
        
        if (Error=='')
            return true;
        else 
            alert(Error);
        return false;
    }
    
    function myFormSubmitEstate() {
        if (frmSubmitEstate() ) { 
            document.frmEstate.submit(); 
            } else {
                return false;
            }
    }
    
    function EstateSelectTownShip() {
             document.frmEstate.EstateTownShipID.value = document.getElementById("EstateTownship").value
             }
    
    //-->
    </script>
    </head>
    <body>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="<?=($SiteBackColor)?>">&nbsp;</td>
        <td width="15">&nbsp;</td>
        <td width="770" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="310"><? include("top.php");?></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="189" valign="top"><? include("left.php");?></td>
                <td width="4"><img src="images/spacer.gif" width="1" height="1"></td>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <form method="post" action="messages.php" name='frmEstate' id="frmEstate" onSubmit="return formSubmitEstate()" enctype="multipart/form-data">
                   <input type="hidden" name="Action" id="Action" value="Estate">
                   <input type="hidden" name="EstateTownShipID" id="EstateTownShipID" value="-1">
                  <tr>
                    <td height="20" bgcolor="<?=($MenuColor)?>"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="3"><img src="images/spacer.gif" width="1" height="1"></td>
                          <td class="FontWhiteBold"><?=($_SESSION['AddEstate'])?></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="e0e0e0">
                      <tr>
                        <td width="150" height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['CityName'])?></td>
                        <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateCity", "DefaultSelectMenu", $_SESSION['Selected'], "", "select * from t_properties where PageType='City' and Visible='1' order by Seq asc", "ID", "Name", "onChange=\"GetAjax('include/ajax.php?GetEstateShowTownship=2&SelectClass=DefaultSelectMenu&LangID=".GetName("select * from t_lang where Name='".$_SESSION['Lang']."'", "ID")."&CityID=', 'EstateShowTownship')\""))?></td>
                      </tr>
                          <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['TownShip'])?></td>
                              <td bgcolor="#FFFFFF"><div id='EstateShowTownship'>
                                          <select name="EstateTownship" id="EstateTownship" class="DefaultSelectMenu">
                                            <option value="0"><?=($_SESSION['Selected'])?></option>
                                          </select>
                                      </div></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Status'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateStatus", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['EstateStatus'], "select * from t_properties where PageType='EstateStatus' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Type'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateType", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['EstateType'], "select * from t_properties where PageType='EstateType' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Warming_System'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("WarmingSystem", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['WarmingSystem'], "select * from t_properties where PageType='WarmingSystem' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Ground'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("Ground", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['Ground'], "select * from t_properties where PageType='Ground' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['RoomType'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("RoomType", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['RoomType'], "select * from t_properties where PageType='RoomType' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['SquareMeter'])?></td>
                            <td bgcolor="#FFFFFF"><input name="SquareMeter" type="text" class="SecureTopInput" id="SquareMeter" size="55" onKeyDown="return CheckNumberCode(event);"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['BuildAge'])?></td>
                            <td bgcolor="#FFFFFF"><input name="BuildAge" type="text" class="SecureTopInput" id="BuildAge" size="55" onKeyDown="return CheckNumberCode(event);"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['FlatItem'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("FlatItem", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['FlatItem'], "select * from t_properties where PageType='FlatItem' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['CurrentFlat'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("CurrentFlat", "DefaultSelectMenu", $_SESSION['Selected'], $rsEdit['CurrentFlat'], "select * from t_properties where PageType='CurrentFlat' and PageLang='".$_SESSION['Lang']."' order by Seq asc", "ItemID", "Name", ""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Price'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="20"><input name="RentPrice" type="text" class="Input50" id="RentPrice" onKeyDown="return CheckNumberCode(event);" value="0" size="55"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><?=(GetSelectListGlobal("RentCurrency", "PriceSelectMenu", $_SESSION['Selected'], $rsEdit['RentCurrency'], "select * from t_exchange order by Seq asc", "Currency", "Currency", ""))?></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Deposit'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="20"><input name="DepositPrice" type="text" class="Input50" id="DepositPrice" onKeyDown="return CheckNumberCode(event);" value="0" size="55"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><?=(GetSelectListGlobal("DepositCurrency", "PriceSelectMenu", $_SESSION['Selected'], $rsEdit['DepositCurrency'], "select * from t_exchange order by Seq asc", "Currency", "Currency", ""))?></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['AncillaryInformation'])?></td>
                            <td bgcolor="#FFFFFF"><textarea name="EstateInfo" cols="55" rows="8" class="TextAreaSiteDefault" id="EstateInfo"><?=($rsEdit['EstateInfo'])?></textarea></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['AdvertDetail'])?></td>
                            <?
                              $sql = "select * from t_properties where PageType='Details' and PageLang='".$_SESSION['Lang']."' and Visible=1 order by Seq asc";
                             ?>
                            <td valign="top" bgcolor="#FFFFFF"><?=(getCheckListGlobal($sql,"detail_name", "t_details", "DetailID", $rsEdit['ID']))?></td>
                          </tr>
                          <tr>
                            <?
                             $sql = "select * from t_properties where PageType='EstateRange' and PageLang='".$_SESSION['Lang']."' and Visible=1 order by Seq asc";
                            ?>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Grounds'])?></td>
                            <td valign="top" bgcolor="#FFFFFF"><?=(getTextListGlobal($sql,"range_name", "t_range", "RangeID", $rsEdit['ID']))?></td>
                            </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 1")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image1" type="file" class="SecureTopInput" id="Image1" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 2")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image2" type="file" class="SecureTopInput" id="Image2" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 3")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image3" type="file" class="SecureTopInput" id="Image3" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 4")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image4" type="file" class="SecureTopInput" id="Image4" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 5")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image5" type="file" class="SecureTopInput" id="Image5" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 6")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image6" type="file" class="SecureTopInput" id="Image6" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 7")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image7" type="file" class="SecureTopInput" id="Image7" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 8")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image8" type="file" class="SecureTopInput" id="Image8" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;</td>
                            <td valign="top" bgcolor="#FFFFFF" class="BrownTextRegular"><?=($_SESSION['GlobalNot']. " : " . $_SESSION['JpegFormat'])?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="F8F8F8" class="FontBlueBold">&nbsp;</td>
                            <td bgcolor="F8F8F8">&nbsp;</td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['FirstName'] ." ". $_SESSION['LastName'])?></td>
                            <td bgcolor="#FFFFFF"><input name="FirstLastName" type="text" class="SecureTopInput" id="FirstLastName" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Phone'])?></td>
                            <td bgcolor="#FFFFFF"><input name="Phone" type="text" class="SecureTopInput" id="Phone" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Email'])?></td>
                            <td bgcolor="#FFFFFF"><input name="Email" type="text" class="SecureTopInput" id="Email" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Message'])?></td>
                            <td bgcolor="#FFFFFF"><textarea name="Messages" cols="55" rows="4" class="TextAreaSiteDefault" id="Messages"></textarea></td>
                          </tr>
                          
                          
                          <tr>
                            <td width="150" height="28" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['ConfirmCode'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="50"><input name="image_text" type="text" class="Input50" id="image_text" size="55" maxlength="5"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><img src="image.php?str=<?=(GetKey())?>" border="1"></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="40" valign="top" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;</td>
                            <td bgcolor="#FFFFFF"><input name="button" type="button" class="Button" onClick="return myFormSubmitEstate()" value="<?=($_SESSION['SendButton'])?>"></td>
                          </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  </form>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
              <td><? include("footer.php")?></td>
          </tr>
        </table></td>
        <td width="15">&nbsp;</td>
        <td bgcolor="<?=($SiteBackColor)?>">&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>
        
     
  4. ozguraybar2

    ozguraybar2 Aktif Üye

    Kayıt:
    17 Eylül 2007
    Mesajlar:
    473
    Beğenilen Mesajlar:
    0
    Meslek:
    Öğrenci
    Şehir:
    Denizli
    PHP:
    <? include("include/escape.php");?>
    <? 
    include("include/all.php");?>
    <? 
    include("include/lang.php");?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?=(str_replace('"'""",stripslashes($SiteTitle)))?></title>
    <META NAME="
    keywords" CONTENT="<?=(str_replace('"'""",stripslashes($SiteKeywords)))?>">
    <
    META NAME="description" CONTENT="<?=(str_replace('"', """,stripslashes($SiteDesicription)))?>">
    <style type="text/css">
    <!--
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    -->
    </style>
    <link href="style/style.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" src="js/lib.js"></script>
    <script language='
    JavaScript'>
    <!--
    function frmSubmitEstate() {
        var frm = document.frmEstate;
        Error = "";
        validateZeroOne(frm.EstateCity, '
    <?=($_SESSION['QuestionSelectCity'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateTownShipID, '<?=($_SESSION['QuestionSelectTownShip'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateStatus, '<?=($_SESSION['QuestionEstateStatus'])?>');
        if (Error=='')
        validateZeroOne(frm.EstateType, '<?=($_SESSION['QuestionEstateType'])?>');
        if (Error=='')
        validateZeroOne(frm.WarmingSystem, '<?=($_SESSION['QuestionWarmingSystem'])?>');
        if (Error=='')
        validateZeroOne(frm.Ground, '<?=($_SESSION['QuestionGround'])?>');
        if (Error=='')
        validateZeroOne(frm.RoomType, '<?=($_SESSION['QuestionRoomType'])?>');
        if (Error=='')
        validateZeroOne(frm.FlatItem, '<?=($_SESSION['QuestionFlatItem'])?>');
        if (Error=='')
        validateZeroOne(frm.CurrentFlat, '<?=($_SESSION['QuestionCurrentFlat'])?>');
        if (Error=='')
        validateZero(frm.RentPrice, '<?=($_SESSION['QuestionRentPrice'])?>');
        if (Error=='')
        validateZeroOne(frm.RentCurrency, '<?=($_SESSION['QuestionRentCurrency'])?>');
        if (Error=='') {
            if (document.frmEstate.DepositPrice.value != 0) {
                validateZeroOne(frm.DepositCurrency, '<?=($_SESSION['QuestionRentCurrency'])?>');
                }
            }

        if (Error=='')
        validateNotEmpty(frm.Image1, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image2, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image3, '<?=($_SESSION['QuestionImage'])?>');
        if (Error=='')
        validateNotEmpty(frm.Image4, '<?=($_SESSION['QuestionImage'])?>');

        if (Error=='')
        validateNotEmpty(frm.FirstLastName, '<?=($_SESSION['QuestionFirstLastName'])?>');
        if (Error== '')
        validateNotEmpty(frm.Phone, '<?=($_SESSION['QuestionPhone'])?>');
        if (Error== '')
        validateEmail(frm.Email, '<?=($_SESSION['QuestionEmail'])?>');
        if (Error== '')
        validateNotEmpty(frm.Messages, '<?=($_SESSION['QuestionMess'])?>');
        if (Error== '')
        validateNotEmpty(frm.image_text, '<?=($_SESSION['QuestionConfirmCode'])?>');
        if (Error== '')
        validateNotEmpty(frm.image_text, '<?=($_SESSION['QuestionConfirmCode'])?>');
        
        if (Error=='')
            return true;
        else 
            alert(Error);
        return false;
    }

    function myFormSubmitEstate() {
        if (frmSubmitEstate() ) { 
            document.frmEstate.submit(); 
            } else {
                return false;
            }
    }

    function EstateSelectTownShip() {
             document.frmEstate.EstateTownShipID.value = document.getElementById("EstateTownship").value
             }

    //-->
    </script>
    </head>
    <body>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="<?=($SiteBackColor)?>">&nbsp;</td>
        <td width="15">&nbsp;</td>
        <td width="770" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="310"><? include("top.php");?></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="189" valign="top"><? include("left.php");?></td>
                <td width="4"><img src="images/spacer.gif" width="1" height="1"></td>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <form method="post" action="messages.php" name='frmEstate' id="frmEstate" onSubmit="return formSubmitEstate()" enctype="multipart/form-data">
                   <input type="hidden" name="Action" id="Action" value="Estate">
                   <input type="hidden" name="EstateTownShipID" id="EstateTownShipID" value="-1">
                  <tr>
                    <td height="20" bgcolor="<?=($MenuColor)?>"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="3"><img src="images/spacer.gif" width="1" height="1"></td>
                          <td class="FontWhiteBold"><?=($_SESSION['AddEstate'])?></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="e0e0e0">
                      <tr>
                        <td width="150" height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['CityName'])?></td>
                        <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateCity""DefaultSelectMenu"$_SESSION['Selected'], """select * from t_properties where PageType='City' and Visible='1' order by Seq asc""ID""Name""onChange=\"GetAjax('include/ajax.php?GetEstateShowTownship=2&SelectClass=DefaultSelectMenu&LangID=".GetName("select * from t_lang where Name='".$_SESSION['Lang']."'""ID")."&CityID=', 'EstateShowTownship')\""))?></td>
                      </tr>
                          <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['TownShip'])?></td>
                              <td bgcolor="#FFFFFF"><div id='EstateShowTownship'>
                                          <select name="EstateTownship" id="EstateTownship" class="DefaultSelectMenu">
                                            <option value="0"><?=($_SESSION['Selected'])?></option>
                                          </select>
                                      </div></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Status'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateStatus""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['EstateStatus'], "select * from t_properties where PageType='EstateStatus' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Type'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("EstateType""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['EstateType'], "select * from t_properties where PageType='EstateType' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Warming_System'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("WarmingSystem""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['WarmingSystem'], "select * from t_properties where PageType='WarmingSystem' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Ground'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("Ground""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['Ground'], "select * from t_properties where PageType='Ground' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['RoomType'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("RoomType""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['RoomType'], "select * from t_properties where PageType='RoomType' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['SquareMeter'])?></td>
                            <td bgcolor="#FFFFFF"><input name="SquareMeter" type="text" class="SecureTopInput" id="SquareMeter" size="55" onKeyDown="return CheckNumberCode(event);"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['BuildAge'])?></td>
                            <td bgcolor="#FFFFFF"><input name="BuildAge" type="text" class="SecureTopInput" id="BuildAge" size="55" onKeyDown="return CheckNumberCode(event);"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['FlatItem'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("FlatItem""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['FlatItem'], "select * from t_properties where PageType='FlatItem' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['CurrentFlat'])?></td>
                            <td bgcolor="#FFFFFF"><?=(GetSelectListGlobal("CurrentFlat""DefaultSelectMenu"$_SESSION['Selected'], $rsEdit['CurrentFlat'], "select * from t_properties where PageType='CurrentFlat' and PageLang='".$_SESSION['Lang']."' order by Seq asc""ItemID""Name"""))?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Price'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="20"><input name="RentPrice" type="text" class="Input50" id="RentPrice" onKeyDown="return CheckNumberCode(event);" value="0" size="55"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><?=(GetSelectListGlobal("RentCurrency""PriceSelectMenu"$_SESSION['Selected'], $rsEdit['RentCurrency'], "select * from t_exchange order by Seq asc""Currency""Currency"""))?></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Deposit'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="20"><input name="DepositPrice" type="text" class="Input50" id="DepositPrice" onKeyDown="return CheckNumberCode(event);" value="0" size="55"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><?=(GetSelectListGlobal("DepositCurrency""PriceSelectMenu"$_SESSION['Selected'], $rsEdit['DepositCurrency'], "select * from t_exchange order by Seq asc""Currency""Currency"""))?></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['AncillaryInformation'])?></td>
                            <td bgcolor="#FFFFFF"><textarea name="EstateInfo" cols="55" rows="8" class="TextAreaSiteDefault" id="EstateInfo"><?=($rsEdit['EstateInfo'])?></textarea></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['AdvertDetail'])?></td>
                            <?
                              $sql 
    "select * from t_properties where PageType='Details' and PageLang='".$_SESSION['Lang']."' and Visible=1 order by Seq asc";
                             
    ?>
                            <td valign="top" bgcolor="#FFFFFF"><?=(getCheckListGlobal($sql,"detail_name""t_details""DetailID"$rsEdit['ID']))?></td>
                          </tr>
                          <tr>
                            <?
                             $sql 
    "select * from t_properties where PageType='EstateRange' and PageLang='".$_SESSION['Lang']."' and Visible=1 order by Seq asc";
                            
    ?>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Grounds'])?></td>
                            <td valign="top" bgcolor="#FFFFFF"><?=(getTextListGlobal($sql,"range_name""t_range""RangeID"$rsEdit['ID']))?></td>
                            </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 1")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image1" type="file" class="SecureTopInput" id="Image1" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 2")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image2" type="file" class="SecureTopInput" id="Image2" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 3")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image3" type="file" class="SecureTopInput" id="Image3" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 4")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image4" type="file" class="SecureTopInput" id="Image4" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 5")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image5" type="file" class="SecureTopInput" id="Image5" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 6")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image6" type="file" class="SecureTopInput" id="Image6" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 7")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image7" type="file" class="SecureTopInput" id="Image7" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['GlobalImage']. " 8")?></td>
                            <td valign="top" bgcolor="#FFFFFF"><input name="Image8" type="file" class="SecureTopInput" id="Image8" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;</td>
                            <td valign="top" bgcolor="#FFFFFF" class="BrownTextRegular"><?=($_SESSION['GlobalNot']. " : " $_SESSION['JpegFormat'])?></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="F8F8F8" class="FontBlueBold">&nbsp;</td>
                            <td bgcolor="F8F8F8">&nbsp;</td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['FirstName'] ." "$_SESSION['LastName'])?></td>
                            <td bgcolor="#FFFFFF"><input name="FirstLastName" type="text" class="SecureTopInput" id="FirstLastName" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Phone'])?></td>
                            <td bgcolor="#FFFFFF"><input name="Phone" type="text" class="SecureTopInput" id="Phone" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Email'])?></td>
                            <td bgcolor="#FFFFFF"><input name="Email" type="text" class="SecureTopInput" id="Email" size="55"></td>
                          </tr>
                          <tr>
                            <td height="25" valign="top" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['Message'])?></td>
                            <td bgcolor="#FFFFFF"><textarea name="Messages" cols="55" rows="4" class="TextAreaSiteDefault" id="Messages"></textarea></td>
                          </tr>
                          
                          
                          <tr>
                            <td width="150" height="28" bgcolor="#FFFFFF" class="FontBlueBold"><?=($_SESSION['ConfirmCode'])?></td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="50"><input name="image_text" type="text" class="Input50" id="image_text" size="55" maxlength="5"></td>
                                <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                                <td><img src="image.php?str=<?=(GetKey())?>" border="1"></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="40" valign="top" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;</td>
                            <td bgcolor="#FFFFFF"><input name="button" type="button" class="Button" onClick="return myFormSubmitEstate()" value="<?=($_SESSION['SendButton'])?>"></td>
                          </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="top" class="DefaultTextJust">&nbsp;</td>
                  </tr>
                  </form>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
              <td><? include("footer.php")?></td>
          </tr>
        </table></td>
        <td width="15">&nbsp;</td>
        <td bgcolor="<?=($SiteBackColor)?>">&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>
     
  5. HooLiGaN

    HooLiGaN Yeni Üye

    Kayıt:
    4 Nisan 2008
    Mesajlar:
    20
    Beğenilen Mesajlar:
    0
    sayfa bozuldu bi yerde hata yapmış olabilrmisin ?
     
  6. HooLiGaN

    HooLiGaN Yeni Üye

    Kayıt:
    4 Nisan 2008
    Mesajlar:
    20
    Beğenilen Mesajlar:
    0
    flood yapmak zorunda kaldım denedim baya ama olmadı yardım edebilecek olan yok mu ?
     
  7. Ferhat Ozdemir

    Ferhat Ozdemir Daimi Üye

    Kayıt:
    14 Nisan 2006
    Mesajlar:
    3,268
    Beğenilen Mesajlar:
    3
    Meslek:
    Electronics and Computer Engineer
    Şehir:
    Texas
    kodları birbirine karıştıran kısımı düzelttim Özgür'ün kodlarında aynı olan kısmı bul verdiğim kodlarla değiştir.
    PHP:
    <title><?=(str_replace("\"""",stripslashes($SiteTitle)));?></title>
    <META NAME="keywords" CONTENT="<?=(str_replace("\"""",stripslashes($SiteKeywords)))?>">
    <META NAME="description" CONTENT="<?=(str_replace("\"""",stripslashes($SiteDesicription)))?>">