• 17-12-2012, 10:22:30
    #1
    arkadaşlar elimde bir bot var eklenmesi gereken öğeleri listeliyor ancak tek tek secip ekle diyorum toplu olarak ekliyor bu sayfaya tümünü seç gibi bir kod ekleyemez miyiz tümünü seçse sonra ekleye tıklasam
    sanırım ilgili kısım aşağıda ki kod
    <div class="clear">&nbsp;</div><?php foreach( $videos[ 'title' ] as $key => $value ) { echo PHP_EOL; ?>
    				<!-- # VIDEO <?php echo $key + 1; ?> # -->
    				<div class="videoLinkLabel"><a href="<?php echo $videos[ 'watch_page_url' ][ $key ]; ?>" target="_blank"><?php echo $videos[ 'title' ][ $key ]; ?></a></div>
    				<div class="videoStatus" style="color: <?php echo $videos[ 'isAddedColor' ][ $key ]; ?>;"><?php echo $videos[ 'isAddedText' ][ $key ]; ?></div>
    				<div class="videoSelectBox">
    					<input type="checkbox" name="selectVideo[]" class="selectBox" value="<?php echo $key; ?>"<?php echo $videos[ 'disableStatus' ][ $key ]; ?> />
    					<input type="hidden" name="url[]" value="<?php echo $videos[ 'watch_page_url' ][ $key ]; ?>" />
    					<input type="hidden" name="title[]" value="<?php echo base64_encode( $videos[ 'title' ][ $key ] ); ?>" />
    					<input type="hidden" name="description[]" value="<?php echo base64_encode( $videos[ 'description' ][ $key ] ); ?>" />
    					<input type="hidden" name="duration[]" value="<?php echo base64_encode( $videos[ 'duration' ][ $key ] ); ?>" />
    					<input type="hidden" name="thumbail[]" value="<?php echo base64_encode( serialize( $videos[ 'thumbnail' ][ $key ] ) ); ?>" />
    				</div>
    				<div class="clear">&nbsp;</div><?php } echo PHP_EOL; ?>
    				<input type="submit" name="editVideo" class="editVideo" value="Düzenle" />
    				<div class="clear">&nbsp;</div>
    				<p class="copyright">Copyright &copy; <?php echo date( 'Y' ); ?>, <a href="http://www.saintx.net/" target="_blank">www.saintx.net</a></p>
    			</fieldset>
    		</form><?php } echo PHP_EOL; if( $_POST[ 'editVideo' ] ) { ?>
    		<form action="" method="post">
    			<fieldset id="fieldset"><?php
    				foreach( $_POST[ 'selectVideo' ] as $key => $value ) {
    				$videos = $saintx->prepareContent( $_POST ); echo PHP_EOL; ?>
    				<div class="clear">&nbsp;</div>
    				<label>Başlık:</label>
    				<input type="text" name="baslik[]" value="<?php echo $videos[ 'title' ][ $key ]; ?>" style="width:92%;font:normal 12px 'Consolas';" />
    				<div class="clear">&nbsp;</div>
    				<label>Resim:&nbsp;</label>
    				<input type="text" name="resim[]" value="<?php echo $videos[ 'thumbail' ][ $key ]; ?>" style="width:92%;font:normal 12px 'Consolas';" />
    				<div class="clear">&nbsp;</div>
    				<label>Adres:&nbsp;</label><input type="text" name="adres[]" value="<?php echo $videos[ 'watch_page' ][ $key ]; ?>" style="width:93%;font:normal 12px 'Consolas';" />
    				<div class="clear">&nbsp;</div>
    				<label>Etiket:</label>
    				<input type="text" name="etiket[]" value="<?php echo $videos[ 'keywords' ][ $key ]; ?>" style="width:92%;font:normal 12px 'Consolas';" />
    				<div class="clear">&nbsp;</div>
    				<label>Kategori:</label>
    				<select type="text" name="kategori[]" style="width:91%;font:normal 12px 'Consolas';"><?php $saintx->printCategory( ); ?></select>
    				<div class="clear">&nbsp;</div><hr style="width:100%;" /><div class="clear">&nbsp;</div>
    				<input type="hidden" name="sure[]" value="<?php echo $videos[ 'duration' ][ $key ]; ?>" /><?php } echo PHP_EOL; ?>
    				<input type="submit" name="ekle" class="editVideo" value="Ekle" />
    				<div class="clear">&nbsp;</div>
  • 17-12-2012, 12:10:16
    #2
    <input type="checkbox"

    bunu

    <input type="checkbox" checked="checked"

    yaparsan olur herhalde.
  • 17-12-2012, 12:54:29
    #3
    Wazzup adlı üyeden alıntı: mesajı görüntüle
    <input type="checkbox"

    bunu

    <input type="checkbox" checked="checked"

    yaparsan olur herhalde.
    teşekkür ederim hocam oldu harikasın =)
  • 22-11-2023, 04:26:09
    #4
    denemedım afakat bende olmadı id seçmesi gerekiyordu yarıdmcı olabılırmısınız
                    <div class="table-responsive">
                        <table class="table table-bordered mg-b-1 text-md-nowrap">
                            <thead>
                                <tr>
                                    <th><button style="float:right;" type="button"  id="siparis_id">Seç</button></th>
                                    <th>ID</th>
                                    <th>Ad Soyad</th>
                                    <th>Telefon</th>
                                    <th>Email</th>
                                    <th>Genel Toplam</th>
                                    <th>Ödeme Yöntemi</th>
                                    <th>Sipariş Tarihi</th>
                                    <th>Sil</th>
                                    <th>Detay</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $sorgu = 'ORDER BY id DESC LIMIT '.$baslangic.','.$limit;
                                if($_POST AND !empty($_POST['ara'])){
                                    $sorgu = " AND (ad LIKE '%{$_POST['ara']}%' OR soyad LIKE '%{$_POST['ara']}%' OR id LIKE '%{$_POST['ara']}%' OR email LIKE '%{$_POST['ara']}%' OR telefon LIKE '%{$_POST['ara']}%' ) ORDER BY id DESC ";
                                }
                                $query = $db->query("SELECT * FROM siparis WHERE dil = '{$dil}' AND durum = '{$etap_id}' {$sorgu}", PDO::FETCH_ASSOC);
                                if($query->rowCount()){
                                    foreach( $query as $row ){
                                        echo '<tr>
                                        <td>
                                        <input type="checkbox" name="siparis_id[]" value='. $row['id'] .'>
                                        </td>
                                        <td>'.$row['id'].'</td>
                                        <td>'.$row['ad'].' '.$row['soyad'].'</td>
                                        <td>'.$row['telefon'].'</td>
                                        <td>'.$row['email'].'</td>
                                        <td>'.fiyat_noktali($row['genel_toplam']).' TL</td>
                                        <td>
                                        '.$odeme_yontemleri[$row['odeme_yontemi']].'<br>';
                                        if($row['odeme_yontemi'] == 1){
                                            if($row['kredi_karti_odeme_durumu'] == 0){
                                                echo '<b style="color:red">Ödeme Yapılmamış</b>';
                                            }else{
                                                echo '<b style="color:green">Ödeme Alındı</b>';
                                            }
                                        }
                                        echo '</td>
                                        <td>'.date('Y-m-d H:i:s',$row['kayit_tarih']).'</td>
                                        <td><a href="'.$dil.'/'.$sayfa.'/'.$etap_id.'?id='.$row['id'].'" class="btn btn-info btn-sm text-white">Sil</a></td>
                                        <td><a href="'.$row['dil'].'/siparis/duzenle/'.$row['id'].'" class="btn btn-success btn-sm text-white"><i class="fe fe-edit"></i> Detay</a></td>
                                        </tr>';
                                    }
                                }else{
                                    echo '<tr>
                                    <td colspan="11" class="text-center">
                                    <img src="assets/images/veriyok.svg" class="wd-15p ">
                                    <h5 class="mg-b-10 mg-t-15 tx-18">Veri Bulunamadı.</h5>
                                    </td>
                                    </tr>';
                                }
                                ?>
                            </tbody>
                        </table>
    Wazzup adlı üyeden alıntı: mesajı görüntüle
    <input type="checkbox"

    bunu

    <input type="checkbox" checked="checked"

    yaparsan olur herhalde.