• 20-05-2009, 17:26:52
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba arkadaşlar. Ben Mefe nin emlak scriptinden aldım. Fakat sistem resim küçültmeyi 2 sefer yapıyor. yani bi vitrin resmi bi orta boyutlu resim bide orjinal resim olarak gösteriyor. benim istediğim orjinal resim boyutunuda 640x480 olarak küçültsün. yani en büyük resim boyutu 640x480 olsun.

    <? include "../include/all.php";?>
    <? include("../include/login_check.php");?>
    <?
    
     $ParentID = toGet($_GET['ParentID'], $_POST['ParentID']);
     $Action = toGet($_GET['Action'], $_POST['Action']);
     $ID = toGet($_GET['ID'], $_POST['ID']);
     
     if (isset($_POST['miSend'])) { 
    		$sql = "select * from t_text";
    		$qrText = mysql_query($sql);
    		$rsText = mysql_fetch_array($qrText);
    		switch($Action) {
    	  		case 'Add' :
    				  if ($_FILES['Image']['tmp_name']) {
    				  	  $sql = "insert into t_services_images (ParentID, Images, Seq, Visible) values('".$_POST['ParentID']."', '0', '".$_POST['Seq']."', '".getVisible($_POST['Visible'])."')";
    					  mysql_query($sql);
    					  
    					  $sql = "select * from t_services_images where ParentID='".$_POST['ParentID']."' order by ID desc LIMIT 0,1";
    					  $img_name = GetName($sql, "ID");
    					  
    					  $sql = "update t_services_images set Images='".$img_name."' where ID='".$img_name."'";
    					  mysql_query($sql);
    					  
    					  
    					  $save_img = SaveImage($_FILES['Image']['tmp_name'], $_FILES['Image']['size'], "../images/services/", "120", "90", "320", "240", $img_name, "Services", $rsText['image_text'], "../font/".$rsText['font_name'], $rsText['font_size'], $rsText['image_alpha']);			  
    					  }	
    				  	
    					  $CloseWindow  = "<script>\n";
    					  $CloseWindow .= "\twindow.opener.location.reload();\n";
    					  $CloseWindow .= "\twindow.close();\n";
    					  $CloseWindow .= "</script>\n";
    					  
    				  break;
    	        
    			case 'Edit' :
    				  if ($_FILES['Image']['tmp_name']) {
    				  	  $sql = "update t_services_images set Images='".$_POST['ID']."', Seq='".$_POST['Seq']."', Visible='".getVisible($_POST['Visible'])."' where ID='".$_POST['ID']."'";
    				 	  mysql_query($sql);
    				      }
    				  
    				  $CloseWindow  = "<script>\n";
    				  $CloseWindow .= "\twindow.opener.location.reload();\n";
    				  $CloseWindow .= "\twindow.close();\n";
    				  $CloseWindow .= "</script>\n";			  
    				  break;
    			
    			}	  	
     	 }
    
    	$sql = "Select * from t_services_images where ID='".$ID."'";
    	$qr = mysql_query($sql);
    	$rs = mysql_fetch_array($qr);
    ?>
    <html>
    <head>
    <SCRIPT language=Javascript src="../js/frmcheck.js"></SCRIPT>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title> <?=($Title)?></title>
    <style type="text/css">
    <!--
    body {
    	background-color: #e0e0e0;
    	margin-left: 0px;
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    }
    -->
    </style>
    <link href="../style/style.css" rel="stylesheet" type="text/css">
    <?=(isset($CloseWindow)?$CloseWindow:"")?>
    </head>
    <body>
    <table width="100%" height="100%" border="0" cellpadding="10" cellspacing="0">
    <form method="post" action="add_images.php" enctype="multipart/form-data">
    <input type="hidden" name="miSend" id="Action" value="1">
    <input type="hidden" name="Action" id="Action" value="<?=($Action)?>">
    <input type="hidden" name="ParentID" id="ParentID" value="<?=($ParentID)?>">
    <input type="hidden" name="ID" id="ID" value="<?=($ID)?>">
      <tr>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5" height="5"><img src="images/top_left.gif" width="5" height="5"></td>
                <td background="images/top_back.gif"><img src="images/spacer.gif" width="1" height="1"></td>
                <td width="5"><img src="images/top_right.gif" width="5" height="5"></td>
              </tr>
              <tr>
                <td background="images/left_back.gif"><img src="images/spacer.gif" width="1" height="1"></td>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="25" bgcolor="#FFFFFF"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="5"><img src="images/spacer.gif" width="1" height="1"></td>
                        <td class="FontBlueBold">Resim Ekle</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="5"><img src="images/spacer.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="e0e0e0">
                          <tr>
                            <td height="30" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;Resim</td>
                            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="100"><input name="Image" type="file" id="Image" class="SecureTopInput"></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="25" bgcolor="#FFFFFF" class="FontBlueBold">&nbsp;Sıra</td>
                            <td bgcolor="#FFFFFF"><input name="Seq" type="text" class="inputSearch" id="Seq" onKeyDown="return CheckNumberCode(event);" value="<?=($rs['Seq']!=''?$rs['Seq']:GetName("select * from t_services_images where ParentID='".$ParentID."'order by Seq desc", "Seq")+5)?>" size="5" maxlength="4"></td>
                          </tr>
                          <tr>
                            <td width="120" height="25" bgcolor="F8F8F8" class="FontBlueBold">&nbsp;Göster</td>
                            <td bgcolor="F8F8F8"><input name="Visible" type="checkbox" id="Visible" value="1" <?=($rs['Visible']==1?"checked":"")?>></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="5"><img src="images/spacer.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td height="25" bgcolor="#FFFFFF"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td>&nbsp;</td>
    					<td width="77"><input type="image" src="images/save_new.gif" width="77" height="25"></td>
                        <td width="1" bgcolor="e0e0e0"><img src="images/spacer.gif" width="1" height="1"></td>
                        <td width="77"><a href="JavaScript:window.close();"><img src="images/cancel.gif" width="77" height="25" border="0"></a></td>
                        <td width="1" bgcolor="e0e0e0"><img src="images/spacer.gif" width="1" height="1"></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
                <td background="images/right_back.gif"><img src="images/spacer.gif" width="1" height="1"></td>
              </tr>
              <tr>
                <td height="5"><img src="images/bottom_left.gif" width="5" height="5"></td>
                <td background="images/bottom_back.gif"><img src="images/spacer.gif" width="1" height="1"></td>
                <td><img src="images/bottom_right.gif" width="5" height="5"></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </form>  
    </table>
    </body>
    </html>
    Bu admin panelindeki add_images.php dosyası. Burada yapabilieceğimiz bişey varmı acaba ? Şimdiden teşekkürler.

    demo: www.emlak.mefe.net Burdan bakarsanız ne demek istediğimi daha rahat anlıyabilirsiniz.
  • 20-05-2009, 17:31:57
    #2
    Scripti satın aldıysan , scriptin yazarından destek alman daha iyi olmaz mı ?
  • 20-05-2009, 19:44:59
    #3
    Evet satın aldım fakat yardımcı olamıycağını. Yeni sistem yaptığı için eski sisteme her hangi bir güncelleme yapmadığını söyledi.
  • 21-05-2009, 15:13:52
    #4
    Üyeliği durduruldu
    her türlü scripti satan kişiden destek almanız daha uygun. şahsen ben hayatta ve hizmet verebilirken birisinin gidip başkasından destek almasına iyi derecede sinir olurdum.
  • 23-05-2009, 23:14:28
    #5
    yardımcı olmuyor arkadaşlar ama bi yöndende haklı gibi. eski sürümde her hangi bir güncelleme yapmıyorum diyor. çünkü yeni sürümünü çıkartıcak. biraz ticari düşünüyor. benim istediğim güncelleme gibi bişey oluyor. başka bi sorunum vardı mesela onu söyledim anında yardımcı oldu.