Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/licence_edit.php |
<div id="page">
<!-- start message-blue -->
<?php if (isset($message_ok)):?>
<div class="n_ok"><p><?php echo $message_ok;?></div>
<?php endif;?>
<!-- start message-red -->
<?php if (isset($message)):?>
<div class="n_error"><p><?php echo $message;?></div>
<?php endif;?>
<div id="content">
<div class="main">
<div class="full_w">
<div class="h_title">Zarządzaj</div>
<h2>Edycja licencji</h2>
<div class="entry">
<div class="sep"></div>
</div>
<form action="/admin/licence_edit/<?php echo $id; ?>" method="post" enctype="multipart/form-data">
<fieldset class="register">
<span class="col1" style="margin-left: 20px;">
<label for="account">IP:</label>
<input type="text" name="ip" style="width: 400px;" value="<?php echo !empty( $data->ip ) ? $data->ip : ''; ?>" /><br clear="both"/>
<label for="account">Domena:</label>
<input type="text" name="domain" style="width: 400px;" value="<?php echo !empty( $data->domain ) ? $data->domain : ''; ?>" /><br clear="both"/>
<label for="account">Użytkownik:</label>
<select name="user_id">
<?php foreach( ORM::Factory('User')->find_all() as $u) : ?>
<option <?php if(!empty( $data->user_id ) AND $data->user_id == $u->id ) echo 'SELECTED="SELECTED"'; ?> value="<?php echo $u->id; ?>"><?php echo $u->username; ?></option>
<?php endforeach; ?>
</select>
<label for="account">Skrypt:</label>
<select name="file_id">
<option value="0">Wszystkie</option>
<?php foreach( ORM::Factory('File')->find_all() as $f) : ?>
<option <?php if(!empty( $data->file_id ) AND $data->file_id == $f->id ) echo 'SELECTED="SELECTED"'; ?> value="<?php echo $f->id; ?>"><?php echo $f->title; ?></option>
<?php endforeach; ?>
</select>
<br clear="both"/><br clear="both"/>
<input type="submit" value="<?php echo !is_null($id) ? 'Popraw' : 'Napisz'; ?>"/>
</span>
<br clear="both"/>
</fieldset>
</form>
</div>
</div>
</div>
</div>