Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Deti.php

Parašė renatasss· 2008 Bal. 9 23:04:42
#1

Cia yra DETI modas kur zmones patys gali deti siuntinius i weba (pasirenka kategorija imeta linka) Man reikia pagalbos, kad kas perdarytu sita visa dalyka. Reikia kad butu taip: Zmogus paraso siuntinio linka ir kai paspaudzia OK tada visa info ka jis parase man irasytu i textini faila info.txt
Jai kas galit padekit
<?php
/*---------------------------------------------------+
|   PHP-Fusion 6 Content Management System
+---------------------------------------------------------+
|   Copyright (c) 2005 Nick Jones
|   http://www.php-fusion.co.uk/
+---------------------------------------------------------+
|   Released under the terms & conditions of v2 of the
|   GNU General Public License. For details refer to
|   the included gpl.txt file or visit http://gnu.org
+---------------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."admin/downloads.php";


$result = dbquery("SELECT * FROM ".$db_prefix."download_cats");
if (dbrows($result) != 0) {
   if ($step == "delete") {
      $result = dbquery("DELETE FROM ".$db_prefix."downloads WHERE download_id='$download_id'");
      redirect("news.php");


   }
   if (isset($_POST['save_download'])) {
      $download_title = stripinput($_POST['download_title']);
      $download_description = addslash($_POST['download_description']);
      $download_url = stripinput($_POST['download_url']);
      $download_license = stripinput($_POST['download_license']);
      $download_os = stripinput($_POST['download_os']);
      $download_version = stripinput($_POST['download_version']);
      $download_filesize = stripinput($_POST['download_filesize']);
   if ($step == "edit") {
         $download_datestamp = isset($_POST['update_datestamp']) ? ", download_datestamp='".time()."'" : "";
         $result = dbquery("UPDATE ".$db_prefix."downloads SET download_title='$download_title', download_description='$download_description', download_url='$download_url', download_cat='$download_cat', download_license='$download_license', download_os='$download_os', download_version='$download_version', download_filesize='$download_filesize'".$download_datestamp." WHERE download_id='$download_id'");
         redirect("news.php");
      } else {
         $result = dbquery("INSERT INTO ".$db_prefix."downloads (download_title, download_description, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count) VALUES ('$download_title', '$download_description', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '".time()."', '0')");
         redirect("news.php");
      }
   }
   if ($step == "edit") {
      $result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_id='$download_id'");
      $data = dbarray($result);
      $download_title = $data['download_title'];
      $download_description = stripslashes($data['download_description']);
      $download_url = $data['download_url'];
      $download_license = $data['download_license'];
      $download_os = $data['download_os'];
      $download_version = $data['download_version'];
      $download_filesize = $data['download_filesize'];
      $formaction = FUSION_SELF.$aidlink."&amp;step=edit&amp;download_cat_id=$download_cat_id&amp;download_id=$download_id";
      opentable($locale['470']);
   } else {
      $download_title = "";
      $download_description = "";
      $download_url = "";
      $download_license = "";
      $download_os = "";
      $download_version = "";
      $download_filesize = "";
      $formaction = FUSION_SELF.$aidlink;
      opentable($locale['471']);
   }
   $editlist = ""; $sel = "";
   $result2 = dbquery("SELECT * FROM ".$db_prefix."download_cats ORDER BY download_cat_name");
   if (dbrows($result2) != 0) {
      while ($data2 = dbarray($result2)) {
         if ($step == "edit") $sel = ($data['download_cat'] == $data2['download_cat_id'] ? " selected" : "");
         $editlist .= "<option value='".$data2['download_cat_id']."'$sel>".$data2['download_cat_name']."</option>\n";
      }
   }
   echo "<form name='inputform' method='post' action='$formaction'>
<table align='center' cellpadding='0' cellspacing='0' width='460'>
<tr>
<td width='80' class='tbl'>".$locale['480']."</td>
<td class='tbl'><input type='text' name='download_title' value='$download_title' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='80' class='tbl'>".$locale['482']."</td>
<td class='tbl'><input type='text' name='download_url' value='$download_url' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='80' class='tbl'>".$locale['483']."</td>
<td class='tbl'><select name='download_cat' class='textbox'>
$editlist</select></td>
</tr>
<tr>
<td align='center' colspan='2' class='tbl'>";
   if ($step == "edit") echo "<input type='checkbox' name='update_datestamp' value='1'> ".$locale['489']."<br><br>\n";
   echo "<input type='submit' name='save_download' value='".$locale['488']."' class='button'></td>
</tr>
</table>
</form>\n";
   closetable();
   
   

}

echo "</td>\n";
require_once "side_right.php";
require_once BASEDIR."footer.php";
?>



Parašė Enzo· 2008 Bal. 10 11:04:22
#2

Mokėk pinigus ir gausi;)

Parašė renatasss· 2008 Bal. 10 13:04:00
#3

Eik tu pinigus tu gal durnas uz pora eiluciu?? Cia kas moka tikrai nera sunku padaryt. Jai uz toki sudeli imi pinigus tai tu turbut vaikas neturi uz ka duonos nusipirkt :/ gal duosiu lita

Parašė Enzo· 2008 Bal. 10 13:04:12
#4

renatasss parašė:
Eik tu pinigus tu gal durnas uz pora eiluciu?? Cia kas moka tikrai nera sunku padaryt. Jai uz toki sudeli imi pinigus tai tu turbut vaikas neturi uz ka duonos nusipirkt :/ gal duosiu lita



raminkis biški, nes gali išvis nieks nedarys. Apskritai kodėl kažkas turi tau daryt? Nenori ir nedaro

Parašė Impossibru· 2008 Bal. 10 13:04:16
#5

renatasss isakius,enzo panorejus...
Graudus tokie yra,kraupu i juos ziuret,jei kelios eilutes tai pats pasidaryk...

Parašė renatasss· 2008 Bal. 10 13:04:49
#6

MOKECIAU PADARYT PASIDARYCIAU NEMOKU PRASAU tU KAS MOKA nemoki nerasai i tema ir fsio kam tie komentai isvis:[

Parašė 7even· 2008 Bal. 10 14:04:56
#7

mokeciau tikrai padeciau (nemokamai):)

Parašė mXt· 2008 Bal. 10 14:04:03
#8

Moku, padarau, už litus.

Parašė tadonesis· 2008 Bal. 21 00:04:46
#9

renatasss parašė:
Eik tu pinigus tu gal durnas uz pora eiluciu?? Cia kas moka tikrai nera sunku padaryt. Jai uz toki sudeli imi pinigus tai tu turbut vaikas neturi uz ka duonos nusipirkt :/ gal duosiu lita


Tai wisi ir moka del smulkmenu ;)

Parašė bad_user· 2008 Bal. 21 07:04:28
#10

Už litus visada. :) O kadangi naglas esi nieko ir negausi :)

Parašė MAnjack· 2008 Bal. 21 08:04:12
#11

O tau į mysql blogai?

Parašė ramunasz· 2008 Bal. 21 13:04:28
#12

^it1 mod1 dar a6 dariau :D

Parašė Pongis· 2008 Bal. 21 13:04:53
#13

renatasss parašė:
Eik tu pinigus tu gal durnas uz pora eiluciu?? Cia kas moka tikrai nera sunku padaryt. Jai uz toki sudeli imi pinigus tai tu turbut vaikas neturi uz ka duonos nusipirkt :/ gal duosiu lita

Jo-ma-jo, kas per įžūlumas?.. Biški susivok kur esi ir ką rašai!
Jeigu ten toks šūdelis, tai pisdink į gūglė.lt ir ieškokis info. Aišku, kad ne gaila būtų padaryti kokiam senbuviui, o dabar pisdukas su 6 postais rėkauti pradės..