Esempio n. 1
0
 $ordering = $listOrder == 'a.ordering';
 $canCreate = $user->authorise('core.create', $option);
 $canEdit = $user->authorise('core.edit', $option);
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
 $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
 $linkEdit = JRoute::_($urlEdit . $item->id);
 $linkRotate90 = JRoute::_($urlTask . '.rotate&angle=90&id=' . $item->id);
 $linkRotate270 = JRoute::_($urlTask . '.rotate&angle=270&id=' . $item->id);
 $linkDeleteThumbs = JRoute::_($urlTask . '.recreate&cid[]=' . (int) $item->id);
 $linkCat = JRoute::_('index.php?option=com_phocagallery&task=phocagalleryc.edit&id=' . (int) $item->category_id);
 $canEditCat = $user->authorise('core.edit', $option);
 $iD = $i % 2;
 echo "\n\n";
 echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->category_id . '" item-id="' . $item->id . '" parents="' . $item->category_id . '" level="0">' . "\n";
 echo $r->tdOrder($canChange, $saveOrder, $orderkey);
 echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
 echo $r->tdImage($item, $this->button, 'COM_PHOCAGALLERY_ENLARGE_IMAGE');
 $checkO = '';
 if ($item->checked_out) {
     $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
 }
 if ($canCreate || $canEdit) {
     $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
 } else {
     $checkO .= $this->escape($item->title);
 }
 $checkO .= ' <span class="smallsub">(<span>' . JText::_($OPT . '_FIELD_ALIAS_LABEL') . ':</span>' . $this->escape($item->alias) . ')</span>';
 echo $r->td($checkO, "small hidden-phone");
 if (isset($item->extid) && $item->extid != '') {
     if (isset($item->exttype) && $item->exttype == 1) {
         echo $r->td(JText::_('COM_PHOCAGALLERY_FACEBOOK_STORED_FILE'));
Esempio n. 2
0
echo $r->endTblHeader();
echo '<tbody>' . "\n";
$originalOrders = array();
$parentsStr = "";
$j = 0;
if (is_array($this->items)) {
    foreach ($this->items as $i => $item) {
        if ($i >= (int) $this->pagination->limitstart && $j < (int) $this->pagination->limit) {
            $j++;
            $linkCat = JRoute::_('index.php?option=com_phocagallery&task=phocagalleryc.edit&id=' . (int) $item->category_id);
            $canEditCat = $user->authorise('core.edit', $option);
            $iD = $i % 2;
            echo "\n\n";
            echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->category_id . '" item-id="' . $item->id . '" parents="' . $item->category_id . '" level="0">' . "\n";
            echo $r->tdOrder(0, 0, 0);
            echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
            $usrU = $item->ratingname;
            if ($item->ratingusername) {
                $usrU = $usrU . ' (' . $item->ratingusername . ')';
            }
            echo $r->td($usrU, "small hidden-phone");
            if ($canEditCat) {
                $catO = '<a href="' . JRoute::_($linkCat) . '">' . $this->escape($item->category_title) . '</a>';
            } else {
                $catO = $this->escape($item->category_title);
            }
            echo $r->td($catO, "small hidden-phone");
            echo $r->td($item->rating, "small hidden-phone");
            echo $r->td($item->id, "small hidden-phone");
            echo '</tr>' . "\n";
        }
Esempio n. 3
0
 $urlEdit = 'index.php?option=' . $option . '&task=' . $task . '.edit&id=';
 $orderkey = array_search($item->id, $this->ordering[$item->parent_id]);
 $ordering = $listOrder == 'a.ordering';
 $canCreate = $user->authorise('core.create', $option);
 $canEdit = $user->authorise('core.edit', $option);
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
 $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
 $linkEdit = JRoute::_($urlEdit . (int) $item->id);
 $linkParent = JRoute::_($urlEdit . (int) $item->parent_id);
 $canEditParent = $user->authorise('core.edit', $option);
 $parentsStr = ' ' . $item->parentstree;
 $iD = $i % 2;
 echo "\n\n";
 echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->parent_id . '" item-id="' . $item->id . '" parents="' . $parentsStr . '" level="' . $item->level . '">' . "\n";
 echo $r->tdOrder($canChange, $saveOrder, $orderkey);
 echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
 $checkO = '';
 if ($item->checked_out) {
     $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
 }
 if ($canCreate || $canEdit) {
     $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
 } else {
     $checkO .= $this->escape($item->title);
 }
 $checkO .= ' <span class="smallsub">(<span>' . JText::_($OPT . '_FIELD_ALIAS_LABEL') . ':</span>' . $this->escape($item->alias) . ')</span>';
 echo $r->td($checkO, "small hidden-phone");
 echo $r->td(JHtml::_('jgrid.published', $item->published, $i, $tasks . '.', $canChange), "small hidden-phone");
 echo $r->td(PhocaGalleryJGrid::approved($item->approved, $i, $tasks . '.', $canChange), "small hidden-phone");
 if ($canEditParent) {
     $parentO = '<a href="' . JRoute::_($linkParent) . '">' . $this->escape($item->parentcat_title) . '</a>';
Esempio n. 4
0
 $j++;
 $urlEdit = 'index.php?option=' . $option . '&task=' . $task . '.edit&id=';
 $urlTask = 'index.php?option=' . $option . '&task=' . $task;
 $orderkey = array_search($item->id, $this->ordering[$item->type]);
 $ordering = $listOrder == 'a.ordering';
 $canCreate = $user->authorise('core.create', $option);
 $canEdit = $user->authorise('core.edit', $option);
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
 $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
 $linkEdit = JRoute::_($urlEdit . $item->id);
 $iD = $i % 2;
 echo "\n\n";
 //echo '<tr class="row'.$iD.'" sortable-group-id="'.$item->type.'" item-id="'.$item->id.'" parents="'.$item->type.'" level="0">'. "\n";
 echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->type . '" >' . "\n";
 echo $r->tdOrder($canChange, $saveOrder, $orderkey);
 echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
 $checkO = '';
 if ($item->checked_out) {
     $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
 }
 if ($canCreate || $canEdit) {
     $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
 } else {
     $checkO .= $this->escape($item->title);
 }
 echo $r->td($checkO, "small hidden-phone");
 $filename = PhocaGalleryFile::existsCss($item->filename, $item->type);
 $main = '';
 if ((int) $item->type == 1) {
     $main = ' <span class="label label-warning">' . JText::_('COM_PHOCAGALLERY_MAIN') . '</span>';
 }
Esempio n. 5
0
if (is_array($this->items)) {
    foreach ($this->items as $i => $item) {
        //if ($i >= (int)$this->pagination->limitstart && $j < (int)$this->pagination->limit) {
        $j++;
        $orderkey = array_search($item->id, $this->ordering[0]);
        $ordering = $listOrder == 'a.ordering';
        $linkEdit = JRoute::_('index.php?option=com_phocagallery&task=phocagallerytag.edit&id=' . (int) $item->id);
        $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
        $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
        $canCreate = $user->authorise('core.create', $option);
        $iD = $i % 2;
        echo "\n\n";
        //echo '<tr class="row'.$iD.'" sortable-group-id="0" item-id="'.$item->id.'" parents="0" level="0">'. "\n";
        echo '<tr class="row' . $iD . '" sortable-group-id="0" >' . "\n";
        echo $r->tdOrder($canChange, $saveOrder, $orderkey);
        echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
        $checkO = '';
        if ($item->checked_out) {
            $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
        }
        if ($canCreate || $canEdit) {
            $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
        } else {
            $checkO .= $this->escape($item->title);
        }
        $checkO .= ' <span class="smallsub">(<span>' . JText::_($OPT . '_FIELD_ALIAS_LABEL') . ':</span>' . $this->escape($item->alias) . ')</span>';
        echo $r->td($checkO, "small hidden-phone");
        echo $r->td(JHtml::_('jgrid.published', $item->published, $i, $tasks . '.', $canChange), "small hidden-phone");
        echo $r->td($item->id, "small hidden-phone");
        echo '</tr>' . "\n";
        //}
Esempio n. 6
0
 $orderkey = array_search($item->id, $this->ordering[$item->image_id]);
 $ordering = $listOrder == 'a.ordering';
 $canCreate = $user->authorise('core.create', $option);
 $canEdit = $user->authorise('core.edit', $option);
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
 $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
 $linkEdit = JRoute::_($urlEdit . $item->id);
 $linkCat = JRoute::_('index.php?option=com_phocagallery&task=phocagalleryc.edit&id=' . (int) $item->category_id);
 $canEditCat = $user->authorise('core.edit', $option);
 $linkImg = JRoute::_('index.php?option=com_phocagallery&task=phocagalleryimg.edit&id=' . (int) $item->image_id);
 $canEditImg = $user->authorise('core.edit', 'com_phocagallery');
 $iD = $i % 2;
 echo "\n\n";
 echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->image_id . '" item-id="' . $item->id . '" parents="' . $item->image_id . '" level="0">' . "\n";
 echo $r->tdOrder($canChange, $saveOrder, $orderkey);
 echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
 $usrO = $item->commentname;
 if ($item->commentusername) {
     $usrO = $usrO . ' (' . $item->commentusername . ')';
 }
 echo $r->td($usrO, "small hidden-phone");
 $checkO = '';
 if ($item->checked_out) {
     $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
 }
 if ($canCreate || $canEdit) {
     $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
 } else {
     $checkO .= $this->escape($item->title);
 }
 echo $r->td($checkO, "small hidden-phone");
Esempio n. 7
0
echo '<tbody>' . "\n";
$originalOrders = array();
$j = 0;
if (is_array($this->items)) {
    foreach ($this->items as $i => $item) {
        //if ($i >= (int)$this->pagination->limitstart && $j < (int)$this->pagination->limit) {
        $j++;
        $orderkey = array_search($item->id, $this->ordering[0]);
        $ordering = $listOrder == 'a.ordering';
        $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
        $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
        $iD = $i % 2;
        echo "\n\n";
        echo '<tr class="row' . $iD . '" sortable-group-id="0" item-id="' . $item->id . '" parents="0" level="0">' . "\n";
        echo $r->tdOrder($canChange, $saveOrder, $orderkey);
        echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
        echo $r->tdImage($item, $this->button, 'COM_PHOCAGALLERY_ENLARGE_IMAGE', '', $this->tmpl['avatarpathabs'], $this->tmpl['avatarpathrel']);
        $usrO = $item->username;
        if ($item->usernameno) {
            $usrO = $usrO . ' (' . $item->usernameno . ')';
        }
        echo $r->td($usrO, "small hidden-phone");
        if ($item->countcid) {
            $countCid = $item->countcid;
        } else {
            $countCid = '0';
        }
        echo $r->td($countCid, "small hidden-phone");
        if ($item->countiid) {
            $countIid = $item->countiid;
        } else {