<?php $ARCurrent->nolangcheck = true; require_once $this->store->get_config("code") . "modules/mod_yui.php"; if ($this->CheckLogin("read") && $this->CheckConfig()) { if (!$ARCurrent->arTypeNames) { $this->call("typetree.ini"); } $myType = $ARCurrent->arTypeNames[$this->type] ? yui::labelspan($ARCurrent->arTypeNames[$this->type]) . "<br>" . yui::labelspan("(" . $this->type . ")") : yui::labelspan($this->type); $info = array('type' => $myType, 'size' => $this->make_filesize($this->call("system.get.size.phtml")), 'priority' => isset($this->priority) ? $this->priority : '--', 'ariadne:id' => $this->id); if ($this->CheckSilent("edit")) { $info['priority'] = "<a href=\"javascript:muze.ariadne.explore.arshow('dialog.priority','" . $this->make_ariadne_url() . "dialog.priority.php')\" title=\"" . $ARnls['ariadne:change_priority'] . "\">" . (isset($this->priority) ? $this->priority : "--") . "</a>"; } $section = array('id' => 'info', 'label' => $ARnls['ariadne:info'], 'details' => yui::section_table($info)); echo yui::getSection($section); }
<?php $ARCurrent->nolangcheck = true; $ARCurrent->allnls = true; if ($this->CheckLogin("read") && $this->CheckConfig()) { require_once $this->store->get_config("code") . "modules/mod_yui.php"; if ($AR->user->data->language) { ldSetNls($AR->user->data->language); } $wwwroot = $AR->dir->www; $menuitems = array(array('label' => $ARnls['ariadne:logoff'], 'iconalt' => $ARnls['ariadne:logoff'], 'icon' => $AR->dir->images . 'icons/medium/logout.png', 'href' => $this->make_ariadne_url() . 'logoff.php'), array('label' => $ARnls['ariadne:search'], 'iconalt' => $ARnls['ariadne:search'], 'icon' => $AR->dir->images . 'icons/small/search.png', 'onclick' => "muze.ariadne.explore.toolbar.searchwindow(); return false;", 'href' => $this->make_ariadne_url() . 'dialog.search.php'), array('label' => $ARnls['ariadne:folders'], 'iconalt' => $ARnls['ariadne:folders'], 'icon' => $AR->dir->images . 'icons/small/view_tree.png', 'href' => "#", 'onclick' => 'muze.ariadne.explore.tree.toggle(); return false;'), array('label' => $ARnls['ariadne:preferences'], 'iconalt' => $ARnls['ariadne:preferences'], 'icon' => $AR->dir->images . 'icons/small/preferences.png', 'onclick' => "muze.ariadne.explore.arshow('dialog.preferences','" . $this->store->get_config('root') . $AR->user->path . "dialog.preferences.php'); return false;", 'href' => $this->make_ariadne_url($AR->user->path) . "dialog.preferences.php"), array('iconalt' => $ARnls['ariadne:iconview'], 'icon' => $AR->dir->images . 'icons/small/view_icon.png', 'onclick' => 'return false;', 'submenu' => array(array('href' => "javascript:muze.ariadne.explore.viewpane.setviewmode('list');", 'label' => $ARnls['ariadne:small']), array('href' => "javascript:muze.ariadne.explore.viewpane.setviewmode('icons');", 'label' => $ARnls['ariadne:large']), array('href' => "javascript:muze.ariadne.explore.viewpane.setviewmode('details');", 'label' => $ARnls['ariadne:details']))), array('iconalt' => $ARnls['ariadne:help'], 'icon' => $AR->dir->images . 'icons/small/help.png', 'onclick' => 'return false;', 'submenu' => array(array('href' => "#", 'onclick' => "muze.ariadne.explore.arshow('help', 'http://www.ariadne-cms.org/docs/'); return false;", 'label' => $ARnls['ariadne:help']), array('href' => "#", 'onclick' => "muze.ariadne.explore.arshow('help.about','help.about.php'); return false;", 'label' => $ARnls['ariadne:about']))), array('iconalt' => $ARnls['ariadne:up'], 'icon' => $AR->dir->images . 'icons/small/up.png', 'href' => $this->make_ariadne_url($this->parent) . "explore.html", 'onclick' => "muze.ariadne.explore.toolbar.viewparent(); return false;", 'id' => "viewparent")); ar::call('ariadne.logo.html'); ?> <?php echo yui::yui_menuitems($menuitems, "yuimenubar", "explore_menubar") . "\n"; ?> <div class="searchdiv"> <form action="explore.html" onsubmit="muze.ariadne.explore.toolbar.searchsubmit(this.arPath.value); return false;"> <div> <input size="30" id="searchpath" class="text searchpath" type="text" name="arPath" value="<?php echo $this->path; ?> "> <input type="image" src="<?php echo $AR->dir->www; ?> images/icons/small/go.png" title="<?php echo htmlspecialchars($ARnls['ariadne:search']); ?> " id="searchbutton" name="searchsubmit" value="<?php echo $ARnls["ariadne:search"];
\t\t\tmuze.event.attach( document.body, 'click', function(evt) { \t\t\t\tevt = muze.event.get(evt); \t\t\t\tmuze.ariadne.explore.viewpane.onClick(evt); \t\t\t}); \t\t\tYAHOO.util.Event.addListener('archildren', 'selected', muze.ariadne.explore.viewpane.onSelected); \t\t\tYAHOO.util.Event.addListener('archildren', 'clearselection', muze.ariadne.explore.viewpane.unselectItem); \t\t}); \t</script> \t<div class="browse viewpane {$viewtype}" id="viewpane"> EOF; yui::showPaging($object_count, $items_per_page, $current_page, "top"); if ($viewtype == "details") { yui::showTable($divId, $tableId, $colDefs, $datalist); echo <<<EOF \t\t\t<script type="text/javascript"> \t\t\t\tYAHOO.util.Event.onDOMReady(muze.ariadne.explore.viewpane.load_handler); \t\t\t</script> EOF; } else { yui::showList(['objects' => $object_list, 'total' => $object_count], $viewtype); } echo '<div class="viewpane_footer"></div>'; yui::showPaging($object_count, $items_per_page, $current_page, "bottom"); echo <<<EOF \t</div> <article class="dropzoneInfo"> \t<progress id="uploadprogress" class="uploadprogress" min="0" max="100" value="0">0</progress> </article> EOF; ar_events::fire('ariadne:onexplore', $eventData); }
<?php if ($this->CheckLogin("read") && $this->CheckConfig()) { echo '<fieldset id="type">'; if (!$location) { $location = $this->path; } $locationOb = current($this->get($location, "system.get.phtml")); $typeslist = yui::getTypes($locationOb, $showall); $itemlist = array(); if ($typeslist && is_array($typeslist) && count($typeslist)) { $itemlist = yui::getItems($locationOb, $typeslist, $location, "dialog.add.php"); foreach ($itemlist as $item) { if ($this->CheckSilent('add', $item['type'], $location)) { $typeslist[$item['type']] = ar('html')->el("div", ar('html')->el("img", array("src" => $item['icon'], "alt" => $item['name'], "title" => $item['name'])) . $item['name']); } else { unset($typeslist[$item['type']]); } } } else { // error($ARnls["ariadne:no_adding_found"]); } if ($arNewType) { echo "<legend>" . $ARnls['ariadne:new:create_object'] . "</legend>"; $typeslist = array($arNewType => $typeslist[$arNewType]); $fields = array("arNewType" => array("type" => "radio", "value" => $arNewType, "options" => $typeslist, "label" => false, "class" => "type_selected")); } else { echo '<legend>' . $ARnls['ariadne:new:select_type'] . '</legend>'; if ($this->CheckSilent("layout")) { $fields = array("showall" => array("type" => "checkbox", "value" => $showall, "label" => $ARnls['ariadne:new:show_all_types'], "checkedValue" => 1, "uncheckedValue" => 0)); $snippit = ar('html')->form($fields, false)->getHTML()->childNodes;
$ARCurrent->nolangcheck = true; if ($this->CheckLogin("add", ARANYTYPE) && $this->CheckConfig()) { require_once $this->store->get_config("code") . "modules/mod_yui.php"; if (!$arReturnTemplate) { $arReturnTemplate = "dialog.new.php"; } $server_name = preg_replace("|^[htps:/]*/|i", "", $AR->host); if ($_SERVER["HTTP_HOST"] == $server_name) { $currentpath = $this->store->get_config("root") . $this->path; } else { $currentpath = $this->make_ariadne_url(); } if (!($showall && $this->CheckSilent("layout"))) { $showall = 0; } $typeslist = yui::getTypes($this, $showall); $itemlist = array(); if ($typeslist && is_array($typeslist) && count($typeslist)) { $itemlist = yui::getItems($this, $typeslist, $currentpath, $arReturnTemplate); } else { error($ARnls["ariadne:no_adding_found"]); } echo '<div class="listcontainer">'; foreach ($itemlist as $item) { echo '<a class="item ' . $item['class'] . '" href="' . $item['href'] . '" title="' . $item['type'] . '">'; echo '<img class="icon" src="' . $item['icon'] . '" alt="' . $item['type'] . '" title="' . $item['type'] . '">'; echo '<span class="name">' . htmlspecialchars($item['name']) . '</span>'; echo '</a>'; } echo '</div>'; }
</h2> <?php foreach ($grants as $path => $info) { ?> <div class="item" title="<?php echo htmlspecialchars($info['name']); ?> "> <img src="<?php echo $this->call('system.get.icon.php', array('type' => $info['type'], 'size' => 'medium')); ?> " alt="<?php echo $info['type']; ?> "> <div class="info"> <span class="path"><?php echo yui::labelspan($path, 30); ?> </span><br> <span class="grants"><?php echo $info['grants']['string']; ?> </span> </div> </div> <?php } ?> </div>
?> "> <img src="<?php echo $this->call('system.get.icon.php', array('type' => $info['type'], size => 'medium')); ?> " alt="<?php echo $info['type']; ?> "> <div class="object"> <span class="name"><?php echo yui::labelspan($info['name'], 24); ?> </span><br> <span class="path"><?php echo yui::labelspan($path, 24); ?> </span> </div> </label> <input class="hidden" id="select_<?php echo $ob_id; ?> " type="submit" name="selectedpath" value="<?php echo $path; ?> "> <?php } ?> </div>
public static function _getSection($section) { return yui::getSection($section); }
foreach ($grants as $key => $val) { if ($val == 8) { $grants[$key] = $formdata['grants']['bytype'][$key]; } } $info['grants']['grantsstring'] = grantsArrayToString($grants); } else { if (isset($textswitch) && $textswitch == 0) { $g_comp = new mod_grant(); $newgrants = array(); // print_r($info['grants']); $g_comp->compile($formdata['grants']['grantsstring'], $newgrants); $grants_by_type = array(); foreach ($newgrants as $grantname => $grantvalue) { if (!isset($available_grants[$grantname])) { $available_grants[$grantname] = yui::labelspan($grantname, 8); } if (is_array($grantvalue)) { $grants_by_type[$grantname] = $grantvalue; $newgrants[$grantname] = ARGRANTBYTYPE; } } $formdata['grants']['array'] = $newgrant; $formdata['grants']['bytype'] = $grants_by_type; } } // echo "</pre>"; ?> <div class="item<?php if ($path == $selecteduser) { echo " selected";
echo $this->call('system.get.icon.php', array('type' => $info['type'], 'size' => 'medium')); ?> " alt="<?php echo $rule['object']['type']; ?> "> <?php echo yui::labelspan($rule['object']['path'], 16); ?> <br> <div class="owner"> <img class="explain_owner" src="<?php echo $this->call('system.get.icon.php', array('type' => $rule['owner']['type'], 'size' => 'small')); ?> " alt="<?php echo $rule['owner']['type']; ?> "> <?php echo yui::labelspan($rule['owner']['name'], 12); ?> </div> <?php echo $rule['grants']['string']; ?> </div> <?php } ?> </div>