Пример #1
0
 function toggleField()
 {
     $id = JRequest::getVar('id');
     $field = JRequest::getVar('field');
     $val = JRequest::getVar('val');
     if ($field == "") {
         return;
     }
     if ($id < 1) {
         return;
     }
     if ($field != "inkb" && $field != "insupport" && $field != "intest") {
         return;
     }
     $db = JFactory::getDBO();
     $qry = "UPDATE #__fss_prod SET " . FSSJ3Helper::getEscaped($db, $field) . " = " . FSSJ3Helper::getEscaped($db, $val) . " WHERE id = " . FSSJ3Helper::getEscaped($db, $id);
     $db->setQuery($qry);
     $db->Query();
     echo FSS_GetYesNoText($val);
     exit;
 }
Пример #2
0
 function ToggleAllEMail()
 {
     $db = JFactory::getDBO();
     $userid = JRequest::getVar('userid');
     $groupid = JRequest::getVar('groupid');
     $qry = "SELECT allemail FROM #__fss_ticket_group_members WHERE user_id = '" . FSSJ3Helper::getEscaped($db, $userid) . "' AND group_id = '" . FSSJ3Helper::getEscaped($db, $groupid) . "'";
     $db->setQuery($qry);
     $current = $db->loadObject();
     $allemail = $current->allemail;
     $allemail = 1 - $allemail;
     $qry = "UPDATE #__fss_ticket_group_members SET allemail = '" . FSSJ3Helper::getEscaped($db, $allemail) . "' WHERE user_id = '" . FSSJ3Helper::getEscaped($db, $userid) . "' AND group_id = '" . FSSJ3Helper::getEscaped($db, $groupid) . "'";
     $db->setQuery($qry);
     $db->Query();
     echo FSS_GetYesNoText($allemail);
     exit;
 }
Пример #3
0
?>
            </th>
            <th width="200" class="title" nowrap="nowrap">
                <?php 
echo JText::_("PRODUCTS");
?>
            </th>
		</tr>
    </thead>
    <?php 
$k = 0;
for ($i = 0, $n = count($this->data); $i < $n; $i++) {
    $row = $this->data[$i];
    $checked = JHTML::_('grid.id', $i, $row->id);
    $link = FSSRoute::_('index.php?option=com_fss&controller=ticketgroup&task=edit&cid[]=' . $row->id);
    $allemail = FSS_GetYesNoText($row->allemail);
    if ($row->allsee == 0) {
        $allsee = JText::_('VIEW_NONE');
        //"None";
    } elseif ($row->allsee == 1) {
        $allsee = JText::_('VIEW');
        //"See all tickets";
    } elseif ($row->allsee == 2) {
        $allsee = JText::_('VIEW_REPLY');
        //"Reply to all tickets";
    } elseif ($row->allsee == 3) {
        $allsee = JText::_('VIEW_REPLY_CLOSE');
        //"Reply to all tickets";
    }
    ?>
        <tr class="<?php 
Пример #4
0
?>
            </th>
            <th>
                <?php 
echo JHTML::_('grid.sort', 'ALL_SEE_USER', 'allsee', @$this->lists['order_Dir'], @$this->lists['order']);
?>
            </th>
		</tr>
    </thead>
    <?php 
$k = 0;
for ($i = 0, $n = count($this->data); $i < $n; $i++) {
    $row = $this->data[$i];
    $checked = JHTML::_('grid.id', $i, $row->user_id);
    $allemail = FSS_GetYesNoText($row->allemail);
    $isadmin = FSS_GetYesNoText($row->isadmin);
    if ($row->allsee == 0) {
        $allsee = JText::_('INHERITED');
        //"None";
        $allsee .= " (";
        $perm = $this->group->allsee;
        if ($perm == 0) {
            $allsee .= JText::_('VIEW_NONE');
            //"None";
        } elseif ($perm == 1) {
            $allsee .= JText::_('VIEW');
            //"See all tickets";
        } elseif ($perm == 2) {
            $allsee .= JText::_('VIEW_REPLY');
            //"Reply to all tickets";
        } elseif ($perm == 3) {
Пример #5
0
    echo JHTML::_('grid.order', $this->data);
}
?>
			</th>
		</tr>
    </thead>
    <?php 
$k = 0;
for ($i = 0, $n = count($this->data); $i < $n; $i++) {
    $row = $this->data[$i];
    $checked = JHTML::_('grid.id', $i, $row->id);
    $link = FSSRoute::_('index.php?option=com_fss&controller=prod&task=edit&cid[]=' . $row->id);
    $published = FSS_GetPublishedText($row->published);
    $iskb = "<a href='#' class='toggle_me' field='inkb' row='{$row->id}' value='{$row->inkb}'>" . FSS_GetYesNoText($row->inkb) . "</a>";
    $issupport = "<a href='#' class='toggle_me' field='insupport' row='{$row->id}' value='{$row->insupport}'>" . FSS_GetYesNoText($row->insupport) . "</a>";
    $istest = "<a href='#' class='toggle_me' field='intest' row='{$row->id}' value='{$row->intest}'>" . FSS_GetYesNoText($row->intest) . "</a>";
    ?>
        <tr class="<?php 
    echo "row{$k}";
    ?>
">
            <td>
                <?php 
    echo $row->id;
    ?>
            </td>
           	<td>
   				<?php 
    echo $checked;
    ?>
			</td>
Пример #6
0
	<?php 
        echo FSS_GetYesNoText($row->advancedsearch);
        ?>
</td>
<td align='center'>
	<?php 
        if ($row->type != "area") {
            echo FSS_GetYesNoText($row->inlist);
        } else {
            echo "<img src='" . JURI::base() . "/components/com_fss/assets/na.png'>";
        }
        ?>
</td>
<td align='center'>
	<?php 
        echo FSS_GetYesNoText($row->peruser);
        ?>
</td>
<?php 
    } else {
        ?>
<td colspan="7" align="center">N/A</td>
<?php 
    }
    ?>
<td align="center">
				<a href="javascript:void(0);" class="jgrid btn btn-micro" onclick="return listItemTask('cb<?php 
    echo $i;
    ?>
','<?php 
    echo $row->published ? 'unpublish' : 'publish';
Пример #7
0
    </thead>
    <?php 
$k = 0;
for ($i = 0, $n = count($this->data); $i < $n; $i++) {
    $row = $this->data[$i];
    $checked = JHTML::_('grid.id', $i, $row->id);
    $link = FSSRoute::_('index.php?option=com_fss&controller=ticketstatus&task=edit&cid[]=' . $row->id);
    $published = FSS_GetPublishedText($row->published);
    $def_open = FSS_GetYesNoText($row->def_open);
    $def_user = FSS_GetYesNoText($row->def_user);
    $def_admin = FSS_GetYesNoText($row->def_admin);
    $def_closed = FSS_GetYesNoText($row->def_closed);
    $is_closed = FSS_GetYesNoText($row->is_closed);
    $def_archive = FSS_GetYesNoText($row->def_archive);
    $can_autoclose = FSS_GetYesNoText($row->can_autoclose);
    $own_tab = FSS_GetYesNoText($row->own_tab);
    ?>
        <tr class="<?php 
    echo "row{$k}";
    ?>
">
            <td>
                <?php 
    echo $row->id;
    ?>
            </td>
           	<td>
   				<?php 
    echo $checked;
    ?>
			</td>