Revize 382
Přidáno uživatelem Michal Kliment před asi 15 roky(ů)
freenetis/trunk/kohana/media/css/jquery.autocomplete.css | ||
---|---|---|
*/
|
||
line-height: 16px;
|
||
overflow: hidden;
|
||
text-align: left;
|
||
}
|
||
|
||
.ac_loading {
|
||
... | ... | |
|
||
.ac_odd {
|
||
background-color: #eee;
|
||
text-align: left;
|
||
}
|
||
|
||
.ac_over {
|
||
background-color: #FAFAD2;
|
||
color: black;
|
||
text-align: left;
|
||
}
|
freenetis/trunk/kohana/application/controllers/users.php | ||
---|---|---|
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->content = new View('users/aditional_contacts');
|
||
$view->content = new View('users/additional_contacts');
|
||
$view->footer = new View('base/footer');
|
||
|
||
$view->header->menu = Controller::render_menu();
|
freenetis/trunk/kohana/application/views/users/aditional_contacts.php | ||
---|---|---|
<h2><?php echo url_lang::lang('texts.Administration of additional contacts') ?></h2><br />
|
||
<?php echo html::anchor(url_lang::base().'users/show/'.$user_id,url_lang::lang('texts.Back to the user')) ?>
|
||
<br /><br />
|
||
<?php echo $infotext ?>
|
||
<br />
|
||
<br />
|
||
|
||
<?php echo form::open(url_lang::base().'users/aditional_contacts/'.$user_id) ?>
|
||
|
||
<table class="extended" cellspacing="0">
|
||
<tr <?php echo count($contacts)>0 ? '' : 'style="display:none;"' ?>>
|
||
<th>
|
||
<?php echo url_lang::lang('texts.Type of contact') ?>
|
||
</th>
|
||
<th>
|
||
<?php echo url_lang::lang('texts.Contact value') ?>
|
||
</th>
|
||
<th>
|
||
|
||
</th>
|
||
</tr>
|
||
<?php foreach ($contacts as $i => $contact):?>
|
||
<tr>
|
||
<td><?php echo '<select name="type[]" style="width:100px;" /> : ' ?>
|
||
<?php foreach ($contact_types as $key => $contact_type):?>
|
||
<?php echo '<option value="'.$key.'"';
|
||
if($contact->type == $key) echo ' selected';
|
||
echo '>'.$contact_type.'</option>' ?>
|
||
<?php endforeach; ?>
|
||
</select> : </td>
|
||
<td><?php echo '<input type="text" name="value[]" maxlength="255" value="'.$contact->value.'" />' ?></td>
|
||
<td><a href="#" onclick="delete_row(this)"><?php echo url_lang::lang('texts.Delete this contact') ?></a></td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
<tr>
|
||
<td>
|
||
<a href="#" onclick="add_row(this, new Array('<?php echo implode("','",$arr_keys) ?>'), new Array('<?php echo implode("','",$contact_types) ?>'),'<?php echo url_lang::lang('texts.Delete this contact') ?>')"><?php echo url_lang::lang('texts.Add new contact') ?></a>
|
||
</td>
|
||
<td colspan="2">
|
||
<input id="contactsubmit" type="submit" value="<?php echo url_lang::lang('texts.Save changes') ?>" name="contactsubmit" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<?php echo form::close() ?>
|
||
<?php
|
||
|
||
|
||
|
||
?>
|
||
|
freenetis/trunk/kohana/application/views/users/show.php | ||
---|---|---|
</tr>
|
||
<?php endforeach; ?>
|
||
<?php
|
||
if ($this->acl_check_new(get_class($this),'aditional_contacts',$user_data->member_id))
|
||
if ($this->acl_check_new(get_class($this),'additional_contacts',$user_data->member_id))
|
||
{
|
||
?>
|
||
<tr>
|
||
<td colspan="2"><?php echo html::anchor(url_lang::base().'users/aditional_contacts/'.$user_data->id,url_lang::lang('texts.Administrate additional contacts')) ?></td>
|
||
<td colspan="2"><?php echo html::anchor(url_lang::base().'users/additional_contacts/'.$user_data->id,url_lang::lang('texts.Administrate additional contacts')) ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
|
freenetis/trunk/kohana/application/views/users/additional_contacts.php | ||
---|---|---|
<h2><?php echo url_lang::lang('texts.Administration of additional contacts') ?></h2><br />
|
||
<?php echo html::anchor(url_lang::base().'users/show/'.$user_id,url_lang::lang('texts.Back to the user')) ?>
|
||
<br /><br />
|
||
<?php echo $infotext ?>
|
||
<br />
|
||
<br />
|
||
|
||
<?php echo form::open(url_lang::base().'users/additional_contacts/'.$user_id) ?>
|
||
|
||
<table class="extended" cellspacing="0">
|
||
<tr <?php echo count($contacts)>0 ? '' : 'style="display:none;"' ?>>
|
||
<th>
|
||
<?php echo url_lang::lang('texts.Type of contact') ?>
|
||
</th>
|
||
<th>
|
||
<?php echo url_lang::lang('texts.Contact value') ?>
|
||
</th>
|
||
<th>
|
||
|
||
</th>
|
||
</tr>
|
||
<?php foreach ($contacts as $i => $contact):?>
|
||
<tr>
|
||
<td><?php echo '<select name="type[]" style="width:100px;" /> : ' ?>
|
||
<?php foreach ($contact_types as $key => $contact_type):?>
|
||
<?php echo '<option value="'.$key.'"';
|
||
if($contact->type == $key) echo ' selected';
|
||
echo '>'.$contact_type.'</option>' ?>
|
||
<?php endforeach; ?>
|
||
</select> : </td>
|
||
<td><?php echo '<input type="text" name="value[]" maxlength="255" value="'.$contact->value.'" />' ?></td>
|
||
<td><a href="#" onclick="delete_row(this)"><?php echo url_lang::lang('texts.Delete this contact') ?></a></td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
<tr>
|
||
<td>
|
||
<a href="#" onclick="add_row(this, new Array('<?php echo implode("','",$arr_keys) ?>'), new Array('<?php echo implode("','",$contact_types) ?>'),'<?php echo url_lang::lang('texts.Delete this contact') ?>')"><?php echo url_lang::lang('texts.Add new contact') ?></a>
|
||
</td>
|
||
<td colspan="2">
|
||
<input id="contactsubmit" type="submit" value="<?php echo url_lang::lang('texts.Save changes') ?>" name="contactsubmit" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<?php echo form::close() ?>
|
||
<?php
|
||
|
||
|
||
|
||
?>
|
||
|
Také k dispozici: Unified diff
Vystylovani naseptavace doleva. Oprava bugu v pridavani dalsich kontaktu.