public static function form_open($array = array()) { $attributes = self::get_attributes($array); $html = '<form ' . $attributes . ' >'; $html .= '<input type="hidden" name="token" value="' . Session::getFormToken() . '">'; return $html; }
/** * Display the button * * @return array A four element array of (article_id, article_title, category_id, object) */ public function onDisplay($name) { // Javascript to insert the link // View element calls jSelectArticle when an article is clicked // jSelectArticle creates the link tag, sends it to the editor, // and closes the select frame. $js = "\n\t\tfunction jSelectArticle(id, title, catid, object, link, lang) {\n\t\t\tvar hreflang = '';\n\t\t\tif (lang !== '') {\n\t\t\t\tvar hreflang = ' hreflang = \"' + lang + '\"';\n\t\t\t}\n\t\t\tvar tag = '<a' + hreflang + ' href=\"' + link + '\">' + title + '</a>';\n\t\t\tjInsertEditorText(tag, '" . $name . "');\n\t\t\t\$.fancybox.close();\n\t\t}"; Document::addScriptDeclaration($js); Html::behavior('modal'); // Use the built-in element view to select the article. // Currently uses blank class. $link = 'index.php?option=com_content&view=articles&layout=modal&tmpl=component&' . Session::getFormToken() . '=1'; $button = new \Hubzero\Base\Object(); $button->set('modal', true); $button->set('link', $link); $button->set('text', Lang::txt('PLG_ARTICLE_BUTTON_ARTICLE')); $button->set('name', 'article'); $button->set('options', "{handler: 'iframe', size: {x: 770, y: 400}}"); return $button; }
?> </span> </span> <?php } ?> </td> <td class="priority-4"> <?php if ($canDo->get('core.edit.state')) { ?> <a class="state <?php echo $scls; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&category_id=' . $this->filters['category_id'] . '&task=sticky&sticky=' . $stickyTask . '&id=' . $row->id . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_FORUM_SET_TO', $stickyTitle); ?> "> <span><?php echo $stickyAlt; ?> </span> </a> <?php } else { ?> <span class="state <?php echo $scls;
<a href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=edit&id=' . $row->get('id') . '&qid=' . $this->question->get('id')); ?> "> <span><?php echo $this->truncate(strip_tags($row->get('answer')), 75); ?> </span> </a> </td> <td> <a class="state <?php echo $cls; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=' . $task . '&id=' . $row->get('id') . '&qid=' . $this->question->get('id') . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_ANSWERS_SET_STATE', $task); ?> "> <span><?php echo $alt; ?> </span> </a> </td> <td class="priority-4"> <time datetime="<?php echo $row->created(); ?>
?> <tr> <td> <input type="radio" name="slctdfile" value="<?php echo $this->escape($this->listdir . $subdird . $docs[$docName]); ?> " /> </td> <td width="100%"> <?php echo $docs[$docName]; ?> </td> <td> <a class="state trash" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=deletefile&delFile=' . $docs[$docName] . '&listdir=' . $this->listdir . '&tmpl=component&subdir=' . $this->subdir . '&' . Session::getFormToken() . '=1'); ?> " target="filer" onclick="return deleteFile('<?php echo $docs[$docName]; ?> ');" title="<?php echo Lang::txt('JACTION_DELETE'); ?> "> <span><?php echo Lang::txt('JACTION_DELETE'); ?> </span> </a> </td> </tr>
$span_title = Lang::txt('COM_MEMBERS_PUBLIC_PROFILE_TITLE'); $title = Lang::txt('COM_MEMBERS_PUBLIC_PROFILE_SET_PRIVATE_TITLE'); if ($this->profile->get('access') == 2) { $cls = 'protected'; $span_title = Lang::txt('COM_MEMBERS_PROTECTED_PROFILE_TITLE'); $title = Lang::txt('COM_MEMBERS_PRIVATE_PROFILE_SET_PUBLIC_TITLE'); } if ($this->profile->get('access') > 2) { $cls = 'private'; $span_title = Lang::txt('COM_MEMBERS_PRIVATE_PROFILE_TITLE'); $title = Lang::txt('COM_MEMBERS_PRIVATE_PROFILE_SET_PUBLIC_TITLE'); } if ($this->active == 'profile') { ?> <a id="profile-privacy" href="<?php echo Route::url($this->profile->link() . '&' . Session::getFormToken() . '=1'); ?> " data-id="<?php echo $this->profile->get('id'); ?> " data-private="<?php echo Lang::txt('Click here to set your profile private.'); ?> " data-public="<?php echo Lang::txt('Click here to set your profile public.'); ?> " class="<?php
<?php $clientInfo = \Hubzero\Base\ClientManager::client($row->client_id); echo '<span class="client client-' . $clientInfo->name . '" data-client="' . substr($clientInfo->name, 0, 1) . '">' . ucfirst($clientInfo->name) . '</span>'; ?> </td> <td class="priority-3"> <?php echo Lang::txt('MOD_WHOSONLINE_HOURS_AGO', (time() - $row->time) / 3600.0); ?> </td> <?php if ($editAuthorized) { ?> <td> <a class="force-logout" href="<?php echo Route::url('index.php?option=com_login&task=logout&uid=' . $row->userid . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo Lang::txt('JLOGOUT'); ?> </span> </a> </td> <?php } ?> </tr> <?php } ?>
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * HUBzero is a registered trademark of Purdue University. * * @package hubzero-cms * @author Christopher Smoak <*****@*****.**> * @copyright Copyright 2005-2015 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // no direct access defined('_HZEXEC_') or die; $token = Session::getFormToken(); if (is_object($this->mailinglist)) { ?> <div class="mailinglist-details"> <span class="name"> <?php echo $this->mailinglist->name; ?> </span> <span class="description"> <?php echo nl2br($this->mailinglist->description); ?> </span> </div>
<th><?php echo Lang::txt('COM_COURSES_FILE'); ?> :</th> <td> <span id="img-name"><?php echo $this->row->params('logo', Lang::txt('COM_COURSES_NONE')); ?> </span> </td> <td> <a id="img-delete" <?php echo $logo ? '' : 'style="display: none;"'; ?> href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=logo&tmpl=component&task=remove¤tfile=' . $logo . '&type=section&id=' . $this->row->get('id') . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_COURSES_DELETE'); ?> ">[ x ]</a> </td> </tr> <tr> <th><?php echo Lang::txt('COM_COURSES_PICTURE_SIZE'); ?> :</th> <td><span id="img-size"><?php echo \Hubzero\Utility\Number::formatBytes($this_size); ?>
</a> </td> <td style="text-align:center;"> <?php $calt = Lang::txt('JNO'); $cls = 'unpublish'; if ($data['private_comments']['read']) { $calt = Lang::txt('JYES'); $cls = 'publish'; } ?> <a class="state <?php echo $cls; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=update&id=' . $data['tickets']['id'] . '&action=read&value=' . ($data['private_comments']['read'] ? '0' : '1') . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo $calt; ?> </span> </a> </td> <td> </td> </tr> <?php $k = 1 - $k; } ?> </tbody>
if ($user->authorise('core.admin')) { $menu->addChild(new Node(Lang::txt('MOD_MENU_UPDATE'), 'index.php?option=com_update', 'class:update')); } $menu->addChild(new Node(Lang::txt('MOD_MENU_SYS_LDAP'), 'index.php?option=com_system&controller=ldap', 'class:ldap')); $menu->addChild(new Node(Lang::txt('MOD_MENU_SYS_GEO'), 'index.php?option=com_system&controller=geodb', 'class:geo')); $menu->addChild(new Node(Lang::txt('MOD_MENU_SYS_APC'), 'index.php?option=com_system&controller=apc', 'class:apc')); //$menu->addChild(new Node(Lang::txt('MOD_MENU_SYS_SCRIPTS'), 'index.php?option=com_system&controller=scripts', 'class:scripts')); $menu->addChild(new Node(Lang::txt('MOD_MENU_SYS_ROUTES'), 'index.php?option=com_redirect', 'class:routes')); $menu->getParent(); } $menu->addSeparator(); if ($user->authorise('core.admin')) { $menu->addChild(new Node(Lang::txt('MOD_MENU_SYSTEM_INFORMATION'), 'index.php?option=com_system&controller=info', 'class:info')); $menu->addSeparator(); } $menu->addChild(new Node(Lang::txt('MOD_MENU_LOGOUT'), 'index.php?option=com_login&task=logout&' . Session::getFormToken() . '=1', 'class:logout')); $menu->getParent(); // // Users Submenu // if ($user->authorise('core.manage', 'com_users')) { $menu->addChild(new Node(Lang::txt('MOD_MENU_COM_USERS_USERS'), '#'), true); $createUser = $shownew && $user->authorise('core.create', 'com_users'); $createGrp = $user->authorise('core.admin', 'com_users'); $menu->addChild(new Node(Lang::txt('MOD_MENU_COM_USERS_USER_MANAGER'), 'index.php?option=com_users&view=users', 'class:user')); /*if ($createUser) { $menu->addChild( new Node(Lang::txt('MOD_MENU_COM_USERS_ADD_USER'), 'index.php?option=com_users&task=user.add', 'class:newarticle') ); $menu->getParent();
</a> </td> <td class="priority-4"> <a class="tool" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&exechost=' . $row->exechost); ?> "> <span><?php echo $this->escape($row->exechost); ?> </span> </a> </td> <td> <a class="state trash" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=remove&id=' . $row->sessnum . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_TOOLS_TERMINATE'); ?> "> <span><?php echo Lang::txt('COM_TOOLS_TERMINATE'); ?> </span> </a> </td> </tr> <?php $i++; }
:: <?php echo Lang::txt('COM_RESOURCES_SET_TASK_TO', $task); ?> "> <span><?php echo $alt; ?> </span> </a> </td> <td class="priority-3"> <a class="access <?php echo $color_access; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=' . $task_access . '&id=' . $row->id . $filterstring . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_RESOURCES_CHANGE_ACCESS'); ?> "> <span><?php echo $this->escape(Lang::txt($row->groupname)); ?> </span> </a> </td> <td class="priority-4" style="white-space: nowrap"> <?php if ($row->modified == '0000-00-00 00:00:00') { echo Lang::txt('COM_RESOURCES_NOT_MODIFIED');
</a> </td> <td> <?php echo $this->escape(stripslashes($row->publish_up)); ?> </td> <td> <span><?php echo $this->escape(stripslashes($row->publish_down)); ?> </span> </td> <td> <a class="state trash" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=removeZone&id=' . $row->id . '&version=' . $this->version . '&tmpl=component&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo Lang::txt('X'); ?> </span> </a> </td> </tr> <?php $i++; $k = 1 - $k; } ?> </tbody>
echo $this->escape(stripslashes($row->title)); ?> </span> <?php } ?> </td> <td class="priority-2"> <?php if ($canDo->get('core.edit.state')) { ?> <a class="state <?php echo $cls; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '§ion_id=' . $this->filters['section_id'] . '&task=' . $task . '&id=' . $row->id . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_FORUM_SET_TO', $task); ?> "> <span><?php echo $alt; ?> </span> </a> <?php } else { ?> <span class="state <?php echo $cls;
?> " rel="{handler: 'iframe', size: {x: 570, y: 550}}" title="<?php echo Lang::txt('COM_SUPPORT_ADD_QUERY'); ?> "> <?php echo Lang::txt('COM_SUPPORT_ADD_QUERY'); ?> </a> </li> <li> <a class="icon-folder" id="new-folder" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=queries&task=addfolder&' . Session::getFormToken() . '=1'); ?> " data-href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=queries&task=savefolder&' . Session::getFormToken() . '=1'); ?> " title="<?php echo Lang::txt('COM_SUPPORT_ADD_FOLDER'); ?> "> <?php echo Lang::txt('COM_SUPPORT_ADD_FOLDER'); ?> </a> </li> </ul> <?php } ?>
default: case 'member': ?> <a class="state promote" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=promote&gid=' . $this->filters['gid'] . '&id=' . $row->uidNumber . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo Lang::txt('COM_GROUPS_MEMBER_PROMOTE'); ?> </span> </a> </td> <td> <a class="state trash" onclick="javascript:if (confirm('Cancel membership?')){return true;}else{return false;}" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=delete&gid=' . $this->filters['gid'] . '&id=' . $row->uidNumber . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo Lang::txt('COM_GROUPS_MEMBER_REMOVE'); ?> </span> </a> <?php break; } ?> <?php } ?> </td>
?> </span> </span> <?php } ?> </td> <td class="priority-2"> <?php if ($canDo->get('core.edit.state')) { ?> <a class="<?php echo $aclass; ?> state" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=' . $atask . '&id=' . $row->id . '&wish=' . $row->wish . '&' . Session::getFormToken() . '=1'); ?> " title="<?php echo $aalt; ?> "> <span><?php echo $aalt; ?> </span> </a> <?php } else { ?> <span class="<?php echo $aclass;
</td> <td class="center priority-2"> <?php if ($item->type == 'component') { ?> <?php if ($item->language == '*' || $item->home == '0') { ?> <?php echo Html::grid('isdefault', $item->home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange); ?> <?php } elseif ($canChange) { ?> <a href="<?php echo Route::url('index.php?option=com_menus&task=items.unsetDefault&cid[]=' . $item->id . '&' . Session::getFormToken() . '=1'); ?> "> <?php echo Html::asset('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => Lang::txt('COM_MENUS_GRID_UNSET_LANGUAGE', $item->language_title)), true); ?> </a> <?php } else { ?> <?php echo Html::asset('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true); ?> <?php } ?>
?> </a> </span> </p> <?php } ?> <?php if ($this->rows->total() > 0) { ?> <div id="posts" data-base="<?php echo rtrim(Request::base(true), '/'); ?> " data-update="<?php echo Route::url('index.php?option=com_collections&controller=posts&task=reorder&' . Session::getFormToken() . '=1'); ?> " class="view-<?php echo $viewas . ' ' . (User::isGuest() ? 'loggedout' : 'loggedin'); ?> "> <?php if ($this->params->get('access-create-item') && !Request::getInt('no_html', 0)) { ?> <div class="post new-post" id="post_0"> <a class="icon-add add" href="<?php echo Route::url($base . '&scope=post/new&board=' . $this->collection->get('alias')); ?> "> <?php echo Lang::txt('PLG_GROUPS_COLLECTIONS_NEW_POST');
$subject_cls = "message-link"; $subject_cls .= $row->whenseen != '' && $row->whenseen != '0000-00-00 00:00:00' ? "" : " unread"; $subject = "<a class=\"{$subject_cls}\" href=\"{$url}\">{$subject}"; //$subject .= "<div class=\"preview\"><span>" . $preview . "</span></div>"; $subject .= "</a>"; //get who the message is from if (substr($row->type, -8) == '_message') { $u = User::getInstance($row->created_by); $from = '<a href="' . Route::url('index.php?option=' . $this->option . '&id=' . $u->get('id')) . '">' . $u->get('name') . '</a>'; } else { $from = Lang::txt('PLG_MEMBERS_MESSAGES_SYSTEM', $component); } //date received $date = Date::of($row->created)->toLocal(Lang::txt('DATE_FORMAT_HZ1')); //delete link $del_link = Route::url($this->member->link() . '&active=messages&mid[]=' . $row->id . '&action=sendtotrash&activetab=archive&' . Session::getFormToken() . '=1'); $delete = '<a title="' . Lang::txt('PLG_MEMBERS_MESSAGES_REMOVE_MESSAGE') . '" class="trash" href="' . $del_link . '">' . Lang::txt('PLG_MEMBERS_MESSAGES_TRASH') . '</a>'; ?> <tr> <td class="check"><?php echo $check; ?> </td> <td class="status"><?php echo $status; ?> </td> <td><?php echo $subject; ?>
<td><?php echo Lang::txt('COM_STORE_HEIGHT'); ?> :</td> <td><?php echo $height; ?> px</td> </tr> <tr> <td><input type="hidden" name="currentfile" value="<?php echo $this->file; ?> " /></td> <td><a href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&tmpl=component&task=delete¤t=' . $this->file . '&id=' . $this->id . '&' . Session::getFormToken() . '=1'); ?> ">[ <?php echo Lang::txt('COM_STORE_DELETE'); ?> ]</a></td> </tr> <?php } else { ?> <tr> <td colspan="4"> <img src="<?php echo '../core/components/' . $this->option . '/site/assets/img/nophoto.gif'; ?> " alt="<?php
<input type="hidden" id="f_file" name="f_file" /> <input type="hidden" id="tmpl" name="component" /> </fieldset> </form> <?php if (User::authorise('core.create', 'com_media')) { ?> <form action="<?php echo Request::base(); ?> index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName() . '=' . $this->session->getId(); ?> &<?php echo Session::getFormToken(); ?> =1&asset=<?php echo Request::getCmd('asset'); ?> &author=<?php echo Request::getCmd('author'); ?> &view=images" id="uploadForm" name="uploadForm" method="post" enctype="multipart/form-data"> <fieldset id="uploadform"> <legend><?php echo $this->config->get('upload_maxsize') == '0' ? Lang::txt('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : Lang::txt('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?> </legend> <fieldset id="upload-noflash" class="actions"> <label for="upload-file" class="hidelabeltxt"><?php
<fieldset> <legend> <span><?php echo Lang::txt('COM_COURSES_FILES'); ?> - <?php echo DS . trim($this->config->get('uploadpath', '/site/courses'), DS) . DS . $this->course_id . DS . $this->listdir; ?> <?php echo $this->dirPath; ?> </span> </legend> <div id="ajax-uploader-before"> </div> <div id="ajax-uploader" data-action="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=upload&course=' . $this->course_id . '&listdir=' . $this->listdir . '&no_html=1&' . Session::getFormToken() . '=1'); ?> "> <table> <tbody> <tr> <td> <input type="file" name="upload" id="upload" /> </td> <td style="white-space:nowrap;"> <input type="checkbox" name="batch" id="batch" value="1" /> <label for="batch"><?php echo Lang::txt('Unpack (.zip, .tar, etc)'); ?> </label> </td> <td>
" title="<?php echo $this->_tmp_doc->name; ?> " > <?php echo $this->_tmp_doc->title; ?> </a> </div> </div> <div class="controls"> <?php if (User::authorise('core.delete', 'com_media')) { ?> <a class="delete-item" target="_top" href="<?php echo Route::url('index.php?option=com_media&task=file.delete&tmpl=index&' . Session::getFormToken() . '=1&folder=' . $this->state->folder . '&rm[]=' . $this->_tmp_doc->name); ?> " rel="<?php echo $this->_tmp_doc->name; ?> "> <?php echo Lang::txt('JACTION_DELETE'); ?> </a> <input type="checkbox" name="rm[]" value="<?php echo $this->_tmp_doc->name; ?> " /> <?php }
" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=anonymous&state=' . $state2 . '&id=' . $row->get('id') . '&pageid=' . $this->filters['page_id'] . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo $calt2; ?> </span> </a> </td> <td class="priority-2"> <a class="state <?php echo $cls1; ?> " href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=' . $state1 . '&id=' . $row->get('id') . '&pageid=' . $this->filters['page_id'] . '&' . Session::getFormToken() . '=1'); ?> "> <span><?php echo $calt1; ?> </span> </a> </td> <td class="priority-4"> <time datetime="<?php echo $row->created(); ?> "> <?php echo $row->created();
</div> </div> </section> <p class="td-options"> <?php if (!$this->row->isComplete() && $this->model->access('content')) { ?> <span class="edit"><a href="<?php echo Route::url($url . '&action=edit') . '/?todoid=' . $this->row->get('id'); ?> " class="showinbox"><?php echo Lang::txt('PLG_PROJECTS_TODO_EDIT'); ?> </a></span> <span class="checked"><a href="<?php echo Route::url($url . '&action=changestate') . '/?todoid=' . $this->row->get('id') . '&state=1&' . Session::getFormToken() . '=1'; ?> " class="confirm-checkoff"><?php echo Lang::txt('PLG_PROJECTS_TODO_TODO_CHECK_OFF'); ?> </a></span> <?php } ?> <?php if ($deletable) { ?> <span class="trash"><a href="<?php echo Route::url($url . '&action=delete') . '/?todoid=' . $this->row->get('id'); ?> " class="confirm-it" id="deltd"><?php
<?php } ?> </div> <?php echo Html::input('token'); ?> </fieldset> </form> <?php if (User::authorise('core.create', 'com_media')) { ?> <!-- File Upload Form --> <form action="<?php echo Route::url('index.php?option=com_media&task=file.upload&tmpl=component&' . $this->session->getName() . '=' . $this->session->getId() . '&' . Session::getFormToken() . '=1', true, true); ?> " id="uploadForm" name="uploadForm" method="post" enctype="multipart/form-data"> <fieldset id="uploadform"> <legend><?php echo $this->config->get('upload_maxsize') == '0' ? Lang::txt('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : Lang::txt('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?> </legend> <fieldset id="upload-noflash" class="actions"> <label for="upload-file" class="hidelabeltxt"><?php echo Lang::txt('COM_MEDIA_UPLOAD_FILE'); ?> </label> <div class="input-modal"> <span class="input-cell"> <input type="file" id="upload-file" name="Filedata[]" multiple="multiple" />
<header id="header" role="banner"> <h1><a href="<?php echo Request::root(); ?> "><?php echo Config::get('sitename'); ?> </a></h1> <ul class="user-options"> <?php //Display an harcoded logout $task = Request::getCmd('task'); $hideLinks = Request::getInt('hidemainmenu'); $logoutLink = Route::url('index.php?option=com_login&task=logout&' . Session::getFormToken() . '=1'); if ($task == 'edit' || $task == 'editA' || $hideLinks) { $logoutLink = ''; } $output = array(); $output[] = ($hideLinks ? '<li data-title="' . Lang::txt('TPL_KAMELEON_LOG_OUT') . '" class="disabled"><span class="logout">' : '<li data-title="' . Lang::txt('TPL_KAMELEON_LOG_OUT') . '"><a class="logout" href="' . $logoutLink . '">') . Lang::txt('TPL_KAMELEON_LOG_OUT') . ($hideLinks ? '</span></li>' : '</a></li>'); // Reverse rendering order for rtl display. if ($this->direction == "rtl") { $output = array_reverse($output); } // Output the items. foreach ($output as $item) { echo $item; } ?> </ul>
<a download target="_blank" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&gidNumber=' . $this->group->get('gidNumber') . '&task=download&file=' . urlencode(substr($k, strlen(PATH_ROOT))) . '&' . Session::getFormToken() . '=1'); ?> " class="icon-file file <?php echo Filesystem::extension($doc); ?> "> <?php $k = substr($k, strlen($this->path)); echo $this->escape(trim($k, DS)); ?> </a> </td> <td> <a class="icon-delete delete" href="<?php echo Route::url('index.php?option=' . $this->option . '&controller=' . $this->controller . '&task=deletefile&file=' . urlencode($k) . '&gidNumber=' . $this->group->get('gidNumber') . '&tmpl=component&' . Session::getFormToken() . '=1'); ?> " target="media" onclick="return deleteFile('<?php echo basename($doc); ?> ');" title="<?php echo Lang::txt('JACTION_DELETE'); ?> "> <span><?php echo Lang::txt('JACTION_DELETE'); ?> </span> </a> </td> </tr>