echo ' <img src="' . site_prefix() . '/inc/app/usradm/pix/arrow.' . $cgi->sort . '.gif" alt="' . $cgi->sort . '" border="0" />'; } echo '</th>' . NEWLINE; } echo TABx2 . '</tr>' . NEWLINE; loader_import('saf.Misc.Alt'); $alt = new Alt('#fff', '#eee'); // each row foreach ($res as $row) { $uname = db_shift('select concat(lastname, ", ", firstname) from sitellite_user where username = ?', $row->user); if (!$uname) { $uname = '<span title="' . intl_get('Non-Existent') . '">' . $row->user . '</span>'; } elseif ($uname == ', ') { $uname = '<a href="' . site_prefix() . '/index/cms-user-view-action?user='******'">' . $row->user . '</a>'; } else { $uname = '<a href="' . site_prefix() . '/index/cms-user-view-action?user='******'" title="' . $uname . '">' . $row->user . '</a>'; } if (strlen($row->message) > 45) { $msg = '<span title="' . htmlentities($row->message) . '">' . substr($row->message, 0, 42) . '...</span>'; } else { $msg = $row->message; } echo TAB . '<tr style="background-color: ' . $alt->next() . '">' . NEWLINE; echo TABx2 . '<td width="25%">' . Date::format($row->ts, 'F j, Y - g:i A') . '</td>' . NEWLINE; echo TABx2 . '<td width="10%" align="center">' . ucwords($row->type) . '</td>' . NEWLINE; echo TABx2 . '<td width="15%" align="center">' . $uname . '</td>' . NEWLINE; echo TABx2 . '<td width="15%">' . $row->ip . '</td>' . NEWLINE; echo TABx2 . '<td width="35%">' . $msg . '</td>' . NEWLINE; echo TAB . '</tr>' . NEWLINE; } echo '</table>' . NEWLINEx2;
ob_start(); echo '<h1>' . intl_get('Not Installed') . '</h1>'; echo '<p align="center"><table border="0" cellpadding="10" cellspacing="1" width="100%">'; loader_import('saf.Misc.Alt'); $alt = new Alt('#fff', '#eee'); $count = 0; $shown = false; foreach ($doc->_apps->children as $child) { $item = $child->makeObj(); if (@is_dir(site_docroot() . '/inc/app/' . $item->id)) { continue; } $shown = true; $count++; if ($count == 1) { echo '<tr style="background-color: ' . $alt->next() . '">'; } if (empty($item->icon)) { $item->icon = site_prefix() . '/inc/app/cms/pix/default_icon.gif'; } echo template_simple('<td align="center" valign="bottom" width="25%"><a href="{link}" target="_blank"><img src="{icon}" alt="{description}" title="{description}" border="0" /><br />{name}{if not empty (obj.price)} - ${price}{end if}</a></td>', $item); if ($count == 4) { $count = 0; echo '</tr>'; } } echo '</table></p>'; $out = ob_get_contents(); ob_end_clean(); if ($shown) { echo $out;
// --> </script> <?php echo template_simple('<p><a href="{site/prefix}/index/usradm-add-pref-action?_list={cgi/list}">{intl Add Preference}</a></p>'); $snm =& session_get_manager(); $list = $snm->pref->getList(); $total = count($list); echo '<p>' . $total . ' ' . intl_get('Preferences found') . ':</p>' . NEWLINEx2; // header echo '<table border="0" cellpadding="3" cellspacing="1" width="100%"> <tr> <th> </th>' . NEWLINE; echo TABx3 . '<th>' . intl_get('Name') . '</th>' . NEWLINE; echo TABx3 . '<th>' . intl_get('Instructions') . '</th>' . NEWLINE; echo TABx2 . '</tr>' . NEWLINE; loader_import('saf.Misc.Alt'); $alt = new Alt('#fff', '#eee'); // each row foreach ($list as $key => $row) { if (!is_array($row)) { $row = array('name' => $row); } else { $row['name'] = $key; } echo template_simple(TAB . '<tr style="background-color: ' . $alt->next() . '">' . NEWLINE . TABx2 . '<td align="center" width="5%"><a href="{site/prefix}/index/usradm-delete-action?_list={cgi/list}&_key={name}" onclick="return confirmDelete (\'{cgi/list}\', \'{name}\')"><img src="{site/prefix}/inc/app/cms/pix/icons/delete.gif" alt="{intl Delete}" title="{intl Delete}" border="0" /></a></td>', $row); echo template_simple(TABx2 . '<td><a href="{site/prefix}/index/usradm-edit-pref-action?_list={cgi/list}&_key={name}">{alt}</a></td>' . NEWLINE, $row); echo TABx2 . '<td>' . $row['instructions'] . '</td>' . NEWLINE; echo TAB . '</tr>' . NEWLINE; } echo '</table>' . NEWLINEx2;