<?php $_known_user = isset($id) && $id ? '' : 'no-data'; echo '<td class="' . $_known_user . ' user-cell">'; // -------------------------------------------------------------------------- // Profile image if (isset($profile_img) && $profile_img) { echo anchor(cdn_serve($profile_img), img(cdn_thumb($profile_img, 36, 36)), 'class="fancybox"'); } else { $_gender = isset($gender) ? $gender : 'undisclosed'; echo img(cdn_blank_avatar(36, 36, $_gender)); } // -------------------------------------------------------------------------- // User details echo '<span class="user-data">'; $_name = ''; $_name .= isset($first_name) && $first_name ? $first_name . ' ' : ''; $_name .= isset($last_name) && $last_name ? $last_name . ' ' : ''; $_name = $_name ? $_name : 'Unknown User'; if (isset($id) && $id) { echo anchor('admin/accounts/edit/' . $id, $_name, 'class="fancybox" data-fancybox-type="iframe"'); } else { echo $_name; } if (isset($email) && $email) { echo '<small>' . mailto($email) . '</small>'; } else { echo '<small>No email address</small>'; } echo '</span>'; // --------------------------------------------------------------------------
<tr> <td class="id"><?php echo number_format($member->id); ?> </td> <td class="details"> <?php if ($member->profile_img) { echo anchor(cdn_serve($member->profile_img), img(array('src' => cdn_thumb($member->profile_img, 65, 65), 'class' => 'profile-img')), 'class="fancybox"'); } else { switch ($member->gender) { case 'female': echo img(array('src' => cdn_blank_avatar(65, 65, 'female'), 'class' => 'profile-img')); break; default: echo img(array('src' => cdn_blank_avatar(65, 65, 'male'), 'class' => 'profile-img')); break; } } echo '<div>'; switch ($this->input->get('sort')) { case 'u.last_name': echo '<strong>' . $member->last_name . ', ' . $member->first_name . '</strong>'; break; default: echo '<strong>' . $member->first_name . ' ' . $member->last_name . '</strong>'; break; } echo '<small>'; echo $member->email; echo $member->email_is_verified ? img(array('src' => NAILS_ASSETS_URL . '/img/admin/icons/verified-email.png', 'class' => 'verified', 'rel' => 'tooltip', 'title' => lang('accounts_index_verified'))) : '';
<fieldset id="edit-user-profile-img"> <legend><?php echo lang('accounts_edit_img_legend'); ?> </legend> <?php $_error = isset($upload_error) ? 'error' : NULL; echo '<div class="field ' . $_error . '">'; if (empty($user_edit->profile_img)) { echo img(array('src' => cdn_blank_avatar(100, 125), 'id' => 'preview_image', 'class' => 'left', 'style' => 'margin-right:10px;')); echo form_upload('profile_img'); } else { $_img = array('src' => cdn_thumb($user_edit->profile_img, 100, 125), 'id' => 'preview_image', 'style' => 'border:1px solid #CCC;padding:0;margin-right:10px;'); echo anchor(cdn_serve($user_edit->profile_img), img($_img), 'class="fancybox left"'); echo '<p>'; echo form_upload('profile_img', NULL, 'style="float:none;"') . '<br />'; $_return = '?return_to=' . urlencode(uri_string() . '?' . $_SERVER['QUERY_STRING']); echo anchor('admin/accounts/delete_profile_img/' . $user_edit->id . $_return, lang('action_delete'), 'class="awesome small red" style="margin-top:10px;"'); echo '</p>'; } if ($_error) { echo '<span class="error">'; foreach ($upload_error as $err) { echo $err . '<br />'; } echo '</span>'; } echo '<div class="clear"></div>'; echo '</div>'; ?>