Spezielleres Downloadmodul

neu@cidnet.de
Beiträge: 356
Registriert: Do 15. Jan 2004, 21:32
Wohnort: Mönchengladbach
Kontaktdaten:

Beitrag von neu@cidnet.de »

http://www.kirchekelzenberg.de/cms/cms/ ... p?idcat=95

die datein wurden normal per ftp hochgeladen, jedoch wird die filesize nicht angezeigt. kann ich ihm das im nachhinnein noch irgendwie angewöhnen? rechte stehen auf 777
neu@cidnet.de
Beiträge: 356
Registriert: Do 15. Jan 2004, 21:32
Wohnort: Mönchengladbach
Kontaktdaten:

Beitrag von neu@cidnet.de »

hat keiner eine idee, wie ich das anstellen könnte?
Neverlands
Beiträge: 45
Registriert: Mo 20. Sep 2004, 14:56
Wohnort: Wien
Kontaktdaten:

Beitrag von Neverlands »

Halllo,

ich bekomme in der Eingabemaske noch immer Mandanten-übergreifend alle Verzeichnisse angezeigt:

Input

Code: Alles auswählen

/** 
 * Download aus Upload-Verzeichnis 
 * 
 * INPUT 
 * 
 * @autor juergen@sotonic.de 
 */ 

?> 
<table cellspacing="0" cellpadding="0" cellpadding="4"> 

    <tr> 
        <td style="font-size:11px">Upload-Zweig:</td> 
        <td> 
            <select name="CMS_VAR[0]" AND idclient = '".$client."'> 
            <option value="0"></option> 
            <?php 

                $sql = "SELECT DISTINCT dirname from ".$cfg["tab"]["upl"]; 

                $db->query($sql); 

                while ( $db->next_record() ) { 

$upload_dir=substr_replace($db->f("dirname"),'',(strlen($db->f("dirname"))-1)); 

                    if ( "CMS_VALUE[0]" == $upload_dir) { 
                        echo '<option selected="selected" value="'.$upload_dir.'">'.$db->f("dirname").'</option>'; 

                    } else { 
                        echo '<option value="'.$upload_dir.'">'.$db->f("dirname").'</option>'; 

                    } 
                } 

            ?> 
            </select> 
        </td> 
    </tr> 
    <tr> 
        <td style="font-size:11px">File-Typ:</td> 
        <td> 
            <select name="CMS_VAR[1]" AND idclient = '".$client."'> 
            <option value="0"></option> 
            <?php 

                $sql = "SELECT DISTINCT filetype from ".$cfg["tab"]["upl"]; //." WHERE dirname='CMS_VALUE[0]/'"; 

                $db->query($sql); 
                while ( $db->next_record() ) { 

                $upload_file=$db->f("filetype"); 

                    if ( "CMS_VALUE[1]" == $upload_file) { 
                        echo '<option selected="selected" value="'.$upload_file.'">'.$db->f("filetype").'</option>'; 

                    } else { 
                        echo '<option value="'.$upload_file.'">'.$db->f("filetype").'</option>'; 

                    } 
                } 


            ?> 
            </select> 
        </td> 
    </tr> 

</table> 

<?php
Was mache ich falsch?
Liebe Grüße,
Neverlands
Zuletzt geändert von Neverlands am Di 23. Aug 2005, 13:56, insgesamt 1-mal geändert.
Neverlands
Beiträge: 45
Registriert: Mo 20. Sep 2004, 14:56
Wohnort: Wien
Kontaktdaten:

Beitrag von Neverlands »

Ich hab' mittlerweile hinbekommen :P

Code: Alles auswählen

/** 
 * Download aus Upload-Verzeichnis 
 * 
 * INPUT 
 * 
 * @autor juergen@sotonic.de 
 */ 

?> 
<table cellspacing="0" cellpadding="0" cellpadding="4"> 

    <tr> 
        <td style="font-size:11px">Upload-Zweig:</td> 
        <td> 
            <select name="CMS_VAR[0]">
            <option value="0"></option> 

     <?php 

                $sql = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE idclient = '".$client."' group by dirname"; 

                $db->query($sql); 

                while ( $db->next_record() ) { 

$upload_dir=substr_replace($db->f("dirname"),'',(strlen($db->f("dirname"))-1)); 

                    if ( "CMS_VALUE[0]" == $upload_dir) { 
                        echo '<option selected="selected" value="'.$upload_dir.'">'.$db->f("dirname").'</option>'; 

                    } else { 
                        echo '<option value="'.$upload_dir.'">'.$db->f("dirname").'</option>'; 

                    } 
                } 

            ?> 
            </select> 
        </td> 
    </tr> 
    <tr> 
        <td style="font-size:11px">File-Typ:</td> 
        <td> 
            <select name="CMS_VAR[1]"> 
            <option value="0"></option> 
            <?php 

                $sql = "SELECT DISTINCT filetype from ".$cfg["tab"]["upl"]; //." WHERE dirname='CMS_VALUE[0]/'"; 

                $db->query($sql); 
                while ( $db->next_record() ) { 

                $upload_file=$db->f("filetype"); 

                    if ( "CMS_VALUE[1]" == $upload_file) { 
                        echo '<option selected="selected" value="'.$upload_file.'">'.$db->f("filetype").'</option>'; 

                    } else { 
                        echo '<option value="'.$upload_file.'">'.$db->f("filetype").'</option>'; 

                    } 
                } 


            ?> 
            </select> 
        </td> 
    </tr> 

</table> 

<?php 
Gruß,
Neverlands
daGhosty
Beiträge: 12
Registriert: Fr 9. Sep 2005, 13:28
Kontaktdaten:

Beitrag von daGhosty »

Hi @ all

Bin neu zur "Contenido Gemeinde" gestossen. Fein, fein ... das CMS

Ich habe das Downloadmodul für meine zwecke etwas modifiziert

nun erscheint
Dateiname ... Beschreibung .. Image ... Filesize ... Downloadbutton(Image)

wobei nicht nur der dateiname sondern auch der Downloadbutton verlinkt sind.

Ich möchte jetzt aber die tabellenzeilen abwechselnd mit anderen hintergrundfarben belegen...
Ich weis das es geht ... nur nicht mehr wie ...

Kann jemand helfen?

gruss

daGhosty
-= [daGhosty] =-
Geht nicht ... gibt's nicht
mhl
Beiträge: 67
Registriert: Mi 18. Aug 2004, 21:59
Wohnort: Salzburg
Kontaktdaten:

Downloadbutton?

Beitrag von mhl »

Hallo daGhosty!

Glaubst Du, Du kannst mal posten wie Du das mit dem Downloadbutton gelöst hast? Fände ich irgendwie eleganter als den nackten Hyperlink.

Gruß

MHL
daGhosty
Beiträge: 12
Registriert: Fr 9. Sep 2005, 13:28
Kontaktdaten:

Re: Downloadbutton?

Beitrag von daGhosty »

Klaro ... kann ich ..

auf der seite

http://www.daghosty.de/cms .. unter Download

kannste dir das anschauen ... ist aber noch ne voll experimentelle seite

wenns gefällt kannste den code haben

gruss

daghosty
-= [daGhosty] =-
Geht nicht ... gibt's nicht
Gesperrt