<?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; include_once $this->store->get_config("code") . "nls/ariadne." . $this->reqnls; require_once $this->store->get_config("code") . "modules/mod_yui.php"; if ($this->CheckLogin("read") && $this->CheckConfig()) { if (!$ARCurrent->arTypeTree) { $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(); $info['type'] = $myType; $info['target'] = yui::labelspan($this->data->path); $info['size'] = $this->size; 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>"; } else { $info['priority'] = isset($this->priority) ? $this->priority : "--"; } $info["ariadne:id"] = $this->id; $section = array('id' => 'info', 'label' => $ARnls['ariadne:info'], 'details' => yui::section_table($info)); echo yui::getSection($section); }
</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>
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>