当前位置: 首页>>代码示例>>PHP>>正文


PHP mosHTML::idBox方法代码示例

本文整理汇总了PHP中mosHTML::idBox方法的典型用法代码示例。如果您正苦于以下问题:PHP mosHTML::idBox方法的具体用法?PHP mosHTML::idBox怎么用?PHP mosHTML::idBox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mosHTML的用法示例。


在下文中一共展示了mosHTML::idBox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _

 public static function _($type)
 {
     $type = preg_replace('#[^A-Z0-9_\\.]#i', '', $type);
     $args = func_get_args();
     array_shift($args);
     $item = $args[0];
     $i = $args[1];
     $prefix = isset($args[2]) ? $args[2] : null;
     $result = '';
     switch ($type) {
         case 'grid.id':
             if (JCOMMENTS_JVERSION == '1.0') {
                 $result = mosHTML::idBox($i, $item->id);
             } elseif (JCOMMENTS_JVERSION == '1.7') {
                 $result = JHTML::_('grid.id', $i, $item->id);
             } else {
                 $result = JHtml::_('grid.id', $i, $item->id);
             }
             break;
         case 'grid.checkedout':
             if (JCOMMENTS_JVERSION == '1.0') {
                 $result = mosCommonHTML::CheckedOutProcessing($item, $i);
             } elseif (JCOMMENTS_JVERSION == '1.7') {
                 $result = JHTML::_('grid.checkedout', $item, $i);
             } else {
                 $result = JHtml::_('grid.checkedout', $item, $i);
             }
             break;
         case 'grid.published':
             if (JCOMMENTS_JVERSION == '1.0') {
                 $result = mosCommonHTML::PublishedProcessing($item, $i);
             } elseif (JCOMMENTS_JVERSION == '1.7') {
                 $result = JHTML::_('grid.published', $item, $i, 'tick.png', 'publish_x.png', $prefix);
             } else {
                 $result = JHtml::_('grid.published', $item, $i, 'tick.png', 'publish_x.png', $prefix);
             }
             break;
     }
     return $result;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:40,代码来源:html.php

示例2: showRequestRentBooksCB


//.........这里部分代码省略.........
        ?>
</th>
                    <th align = "center" class="title" width="70%" nowrap="nowrap">
                        <?php 
        echo _BOOKLIBRARY_LABEL_TITLE;
        ?>
</th>
                    <th align = "center" class="title" width="15%" nowrap="nowrap">
                        <?php 
        echo _BOOKLIBRARY_LABEL_LEND_USER;
        ?>
</th>
                    <th align = "center" class="title" width="10%" nowrap="nowrap">
                        <?php 
        echo _BOOKLIBRARY_LABEL_LEND_EMAIL;
        ?>
</th>
                    <th align = "center" class="title" width="20%" nowrap="nowrap">
                <?php 
        echo _BOOKLIBRARY_LABEL_LEND_ADRES;
        ?>
</th>
                </tr>

                <?php 
        for ($i = 0, $n = count($rent_requests); $i < $n; $i++) {
            $row = $rent_requests[$i];
            ?>
                    <tr class="row<?php 
            echo $i % 2;
            ?>
">
                        <td width="20" align="center"><?php 
            echo mosHTML::idBox($i, $row->id, 0, 'bid');
            ?>
</td>
                        <td align = "center"><?php 
            echo $row->id;
            ?>
</td>
                        <td align = "center"><?php 
            echo $row->lend_from;
            ?>
</td>
                        <td align = "center"><?php 
            echo $row->lend_until;
            ?>
</td>
                        <td align = "center"><?php 
            $data = JFactory::getDBO();
            $query = "SELECT bookid FROM #__booklibrary where id = " . $row->fk_bookid . " ";
            $data->setQuery($query);
            $bookid = $data->loadObjectList();
            echo $bookid[0]->bookid;
            ?>
                        </td>
                        <td align = "center"><?php 
            echo $row->title;
            ?>
</td>
                        <td align = "center"><?php 
            echo $row->user_name;
            ?>
</td>
                        <td align = "center">
                            <a href='mailto:"<?php 
开发者ID:rdegennaro,项目名称:Check-It,代码行数:67,代码来源:booklibrary.html.php

示例3: showArchive


//.........这里部分代码省略.........
		</tr>
		<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $row->cat_link = 'index2.php?option=com_categories&task=editA&hidemainmenu=1&id=' . $row->catid;
            if ($acl->acl_check('administration', 'manage', 'users', $my->usertype, 'components', 'com_users')) {
                if ($row->created_by_alias) {
                    $author = $row->created_by_alias;
                } else {
                    $linkA = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id=' . $row->created_by;
                    $author = '<a href="' . $linkA . '" title="Editar Usuário">' . $row->author . '</a>';
                }
            } else {
                if ($row->created_by_alias) {
                    $author = $row->created_by_alias;
                } else {
                    $author = $row->author;
                }
            }
            $date = mosFormatDate($row->created, '%x');
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td>
				<?php 
            echo $pageNav->rowNumber($i);
            ?>
				</td>
				<td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id);
            ?>
				</td>
				<td>
				<?php 
            echo $row->title;
            ?>
				</td>
				<td align="center" colspan="2">
				<input type="text" name="order[]" size="5" value="<?php 
            echo $row->ordering;
            ?>
" class="text_area" style="text-align: center" />
				</td>
				<td>
				<a href="<?php 
            echo $row->cat_link;
            ?>
" title="Editar Categoria">
				<?php 
            echo $row->name;
            ?>
				</a>
				</td>
				<td>
				<?php 
            echo $author;
            ?>
				</td>
				<td>
				<?php 
            echo $date;
            ?>
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:67,代码来源:admin.content.html.php

示例4: showList

    /**
     * Writes a list of the content items
     * @param array An array of content objects
     */
    function showList(&$rows, $search, $pageNav, $option)
    {
        global $my, $adminLanguage;
        global $mosConfig_live_site;
        ?>
		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="frontpage">
			<?php 
        echo $adminLanguage->A_COMP_FRONT_PAGE_ITEMS;
        ?>
			</th>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_FILTER;
        ?>
:
			</td>
			<td> 
			<input type="text" name="search" value="<?php 
        echo $search;
        ?>
" class="inputbox" onChange="document.adminForm.submit();" />
			</td>
		</tr>
		</table>

		<table class="adminlist">
		<tr>
			<th width="20"> 
			<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php 
        echo count($rows);
        ?>
);" />
			</th>
			<th class="title" width="50%">
			<?php 
        echo $adminLanguage->A_COMP_TITLE;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_PUBLISHED;
        ?>
			</th>
			<th colspan="2" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_REORDER;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_ACCESS;
        ?>
			</th>
			<th width="15%" align="left">
			<?php 
        echo $adminLanguage->A_COMP_CATEG;
        ?>
			</th>
			<th>
			<?php 
        echo $adminLanguage->A_COMP_FRONT_ORDER;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_CHECKED_OUT;
        ?>
			</th>
		</tr>
		<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id, $row->checked_out && $row->checked_out != $my->id);
            ?>
				</td>
				<td>
				<?php 
            echo $row->title;
            ?>
 
				</td>
				<?php 
            $now = date("Y-m-d h:i:s");
            if ($now <= $row->publish_up && $row->state == "1") {
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:admin.frontpage.html.php

示例5: showLanguageManager


//.........这里部分代码省略.........
                    </td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td></td>
                    <td width="35%">
        <?php 
        echo $search['languages'];
        ?>
                    </td>
                    <td width="35%">
        <?php 
        echo $search['sys_type'];
        ?>
                    </td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <th width="5%" align="center"></th>
                    <th align = "center" class="title" width="35%" nowrap="nowrap">
        <?php 
        echo _BOOKLIBRARY_ADMIN_LANGUAGE_MANAGER_CONST;
        ?>
                    </th>
                    <th align = "center" class="title" width="35%" nowrap="nowrap">
        <?php 
        echo _BOOKLIBRARY_ADMIN_LANGUAGE_MANAGER_VALUE_CONST;
        ?>
                    </th>
                    <th align = "center" class="title" width="35%" nowrap="nowrap">
        <?php 
        echo _BOOKLIBRARY_LABEL_LANGUAGE;
        ?>
                    </th>
                    <th align = "center" class="title" width="35%" nowrap="nowrap">
        <?php 
        echo _BOOKLIBRARY_ADMIN_LANGUAGE_MANAGER_SYS_TYPE;
        ?>
                    </th>
                </tr>

        <?php 
        $i = 0;
        foreach ($const_languages as $const_language) {
            ?>
                    <tr>
                        <td align="center">
            <?php 
            echo mosHTML::idBox($i, $const_language->id, false, 'bid');
            ?>
                        </td>
                        <td>
                            <a href="#edit" onClick="return listItemTask('cb<?php 
            echo $i;
            ?>
','edit')">
            <?php 
            echo $const_language->const;
            ?>
                            </a>
                        </td>
                        <td>
                            <a href="#edit" onClick="return listItemTask('cb<?php 
            echo $i;
            ?>
','edit')">
            <?php 
            echo $const_language->value_const;
            ?>
                            </a>
                        </td>
                        <td align="center">
            <?php 
            echo $const_language->title;
            ?>
                        </td>
                        <td align="center"><?php 
            echo $const_language->sys_type;
            ?>
</td>
                    </tr>
            <?php 
            $i++;
        }
        ?>
                <tr class="for_paginator">
                    <td colspan = "13"><?php 
        echo $pageNav->getListFooter();
        ?>
</td>
                </tr>
            </table>
            <input type="hidden" name="option" value="com_booklibrary" />
            <input type="hidden" name="section" value="language_manager" />
            <input type="hidden" name="task" value="" />
            <input type="hidden" value="0" name="boxchecked">
        </form>

    <?php 
    }
开发者ID:rdegennaro,项目名称:Check-It,代码行数:101,代码来源:booklibrary.html.php

示例6: addUser


//.........这里部分代码省略.........
        echo _JLMS_USER_NAME;
        ?>
					</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
					<<?php 
        echo JLMSCSS::tableheadertag();
        ?>
 valign="middle" style="vertical-align:middle " class="<?php 
        echo JLMSCSS::_('sectiontableheader');
        ?>
">
						<?php 
        echo _JLMS_USER_EMAIL;
        ?>
					</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
				</tr>
				<?php 
        for ($i = 0; $i < count($usrs); $i++) {
            ?>
				<tr class="<?php 
            echo JLMSCSS::_('sectiontableentry' . ($i % 2 + 1));
            ?>
">
					<td><?php 
            echo $i + 1;
            ?>
</td>
					<?php 
            $checked = mosHTML::idBox($i, $usrs[$i]->id);
            ?>
					<td><?php 
            echo $checked;
            ?>
</td>
					<td><?php 
            echo $usrs[$i]->username;
            ?>
</td>
					<td><?php 
            echo $usrs[$i]->name;
            ?>
</td>
					<td><?php 
            echo $usrs[$i]->email;
            ?>
</td>
				</tr>
				<?php 
        }
        ?>
				<tr>
					<td colspan="5" align="center" class="<?php 
        echo JLMSCSS::_('jlmslist-footer_td');
        ?>
">
						<div align="center" style="white-space: nowrap;">
						<?php 
        $link = "index.php?option={$option}&amp;Itemid={$Itemid}&amp;task=add_user&amp;course_id={$course_id}&amp;utype={$utype}&amp;group_id={$group_id}";
        if ($u_search != '') {
            $link .= '&amp;u_search=' . $u_search;
        }
开发者ID:parkmi,项目名称:dolschool14,代码行数:67,代码来源:joomla_lms.course_users.html.php

示例7: showList

    /**
     * Writes a list of the Trash items
     */
    function showList($option, $content, $pageNav, $list, $catid)
    {
        global $my;
        ?>
		<script language="javascript" type="text/javascript">
		/**
		* Toggles the check state of a group of boxes
		*
		* Checkboxes must have an id attribute in the form cb0, cb1...
		* @param The number of box to 'check'
		*/
		function checkAll_xtd ( n ) {
			var f = document.adminForm;
			var c = f.toggle1.checked;
			var n2 = 0;
			for ( i=0; i < n; i++ ) {
				cb = eval( 'f.cb1' + i );
				if (cb) {
					cb.checked = c;
					n2++;
				}
			}
			if (c) {
				document.adminForm.boxchecked.value = n2;
			} else {
				document.adminForm.boxchecked.value = 0;
			}
		}
		</script>
		<form action="index2.php?option=com_trash" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th class="trash">Administrar Lixeira</th>
			<td width="right">
				<?php 
        echo $list;
        ?>
			</td>
		</tr>
		</table>

		<table class="adminlist" width="90%">
		<tr>
			<th width="20">Qtd.</th>
			<th width="20">
			<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php 
        echo count($content);
        ?>
);" />
			</th>
			<th width="20px">&nbsp;</th>
			<th class="title">
			Título
			</th>
			<th>
			Seções
			</th>
			<th>
			Categoria 
			</th>
			<th width="70px">
			ID
			</th>
		</tr>
		<?php 
        $k = 0;
        $i = 0;
        $n = count($content);
        foreach ($content as $row) {
            ?>
			<tr class="<?php 
            echo "row" . $k;
            ?>
">
				<td align="center" width="30px">
				<?php 
            echo $i + 1 + $pageNav->limitstart;
            ?>
				</td>
				<td width="20px" align="center"><?php 
            if ($catid == "content") {
                echo mosHTML::idBox($i, $row->id);
            } else {
                echo "<input type=\"checkbox\" id=\"cb{$i}\" name=\"mid[]\" value=\"{$row->id}\" onclick=\"isChecked(this.checked);\" />";
            }
            ?>
</td>
				<td width="20px"></td>
				<td nowrap="nowrap">
				<?php 
            echo $row->title;
            ?>
				</td>
				<td align="center" width="20%">
				<?php 
            echo $row->sectname;
            ?>
//.........这里部分代码省略.........
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:101,代码来源:admin.trash.html.php

示例8: showDocuments


//.........这里部分代码省略.........
            <?php 
        echo _DML_HITS;
        ?>
            </th>
            <th width="5%" nowrap="nowrap">
            <?php 
        echo _DML_CHECKED_OUT;
        ?>
            </th>
          </tr>
          </thead>

          <tfoot><tr><td colspan="11"><?php 
        echo $pageNav->getListFooter();
        ?>
</td></tr></tfoot>

          <tbody>
          <?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $task = $row->published ? 'unpublish' : 'publish';
            $img = $row->published ? 'publish_g.png' : 'publish_x.png';
            $alt = $row->published ? _DML_PUBLISHED : _DML_UNPUBLISH;
            $file = new DOCMAN_File($row->dmfilename, $_DOCMAN->getCfg('dmpath'));
            ?>
<tr class="row<?php 
            echo $k;
            ?>
">
                <td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id, $row->checked_out && $row->checked_out != $my->id);
            ?>
				</td>
				<td width="15%">
			<?php 
            if ($row->checked_out && $row->checked_out != $my->id) {
                ?>
					<?php 
                echo $row->dmname;
                ?>
					&nbsp;[ <i><?php 
                echo _DML_CHECKED_OUT;
                ?>
</i> ]
			<?php 
            } else {
                ?>
					<a href="#edit" onclick="return listItemTask('cb<?php 
                echo $i;
                ?>
','edit')">
					<?php 
                echo $row->dmname;
                ?>
					</a>
					<?php 
            }
            ?>
				</td>
                <td>
                <?php 
            if ($file->exists()) {
                ?>
开发者ID:RangerWalt,项目名称:ecci,代码行数:67,代码来源:documents.html.php

示例9: showStepConditions

    function showStepConditions($course_id, $lpath_id, $step_id, $option, &$conds, &$lists, $step_name)
    {
        global $Itemid, $JLMS_CONFIG;
        ?>
<script language="javascript" type="text/javascript">
<!--
function submitbutton_del(pressbutton) {
	var form = document.adminForm;
	if (form.boxchecked.value == '0') {
		alert('<?php 
        echo _JLMS_ALERT_SELECT_ITEM;
        ?>
');
	} else {
		form.task.value = pressbutton;
		form.submit();
	}
}
function submitbutton_add(pressbutton) {
	var form = document.newcondForm;
	form.task.value = pressbutton;
	form.submit();
}
//-->
</script>
<?php 
        JLMS_TMPL::OpenMT();
        $hparams = array();
        $toolbar = array();
        $toolbar[] = array('btn_type' => 'back', 'btn_js' => sefRelToAbs("index.php?option={$option}&amp;Itemid={$Itemid}&amp;task=compose_lpath&amp;course_id={$course_id}&amp;id={$lpath_id}"));
        JLMS_TMPL::ShowHeader('lpath', '', $hparams, $toolbar);
        JLMS_TMPL::OpenTS();
        echo JLMSCSS::h2(_JLMS_LPATH_TITLE_CONDITIONS . $step_name);
        ?>
	<form action="<?php 
        echo sefRelToAbs("index.php?option=" . $option . "&amp;Itemid=" . $Itemid);
        ?>
" method="post" name="adminForm">
		<table width="100%" cellpadding="0" cellspacing="0" border="0" class="<?php 
        echo JLMSCSS::_('jlmslist');
        ?>
">
			<tr>
				<<?php 
        echo JLMSCSS::tableheadertag();
        ?>
 width="20" class="<?php 
        echo JLMSCSS::_('sectiontableheader');
        ?>
" align="center">#</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
				<<?php 
        echo JLMSCSS::tableheadertag();
        ?>
 width="20" class="<?php 
        echo JLMSCSS::_('sectiontableheader');
        ?>
">&nbsp;</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
				<<?php 
        echo JLMSCSS::tableheadertag();
        ?>
 class="<?php 
        echo JLMSCSS::_('sectiontableheader');
        ?>
">&nbsp;</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
				<<?php 
        echo JLMSCSS::tableheadertag();
        ?>
 class="<?php 
        echo JLMSCSS::_('sectiontableheader');
        ?>
"><?php 
        echo _JLMS_LPATH_COND_REF_STEP;
        ?>
</<?php 
        echo JLMSCSS::tableheadertag();
        ?>
>
			</tr>
		<?php 
        $k = 1;
        for ($i = 0, $n = count($conds); $i < $n; $i++) {
            $row_cond = $conds[$i];
            $checked = mosHTML::idBox($i, $row_cond->id);
            ?>
			<tr id="tree_row_<?php 
            echo $row_cond->id;
            ?>
" class="<?php 
            echo JLMSCSS::_('sectiontableentry' . $k);
            ?>
">
//.........这里部分代码省略.........
开发者ID:parkmi,项目名称:dolschool14,代码行数:101,代码来源:joomla_lms.course_lpath.html.php

示例10: showCoursesForGuest


//.........这里部分代码省略.........
                ?>
 class="<?php 
                echo JLMSCSS::_('sectiontableheader');
                ?>
" width="4%" align="left" nowrap="nowrap"><?php 
                echo _JLMS_COURSES_PRICE;
                ?>
</<?php 
                echo JLMSCSS::tableheadertag();
                ?>
>							
					<?php 
            }
        }
        ?>
				</tr>
			<?php 
        $k = 1;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row = $rows[$i];
            if (!$show_paid_courses && $row->paid) {
                continue;
            }
            $course_descr = strip_tags($row->course_description);
            if (strlen($course_descr) > 100) {
                $course_descr = substr($course_descr, 0, 100) . "...";
            }
            if ($row->self_reg == 0) {
                $checked = "<a href='mailto:" . $row->email . "'><img class='JLMS_png' src=\"" . $lms_img_path . "/dropbox/dropbox_corr.png\" width='16' height='16' border='0' alt='' title='' /></a>";
            } else {
                if ($row->gid) {
                    $checked = "<a href='mailto:" . $row->email . "'><img class='JLMS_png' src=\"" . $lms_img_path . "/dropbox/dropbox_corr.png\" width='16' height='16' border='0' alt='' title='' /></a>";
                } else {
                    $checked = mosHTML::idBox($i, $row->id);
                }
            }
            $link = sefRelToAbs("index.php?option=" . $option . "&amp;Itemid=" . $Itemid . "&amp;task=course_guest&amp;id=" . $row->id);
            ?>
				<?php 
            if ($show_short_description) {
                ?>
				<tr valign="middle" style="vertical-align:middle" class="<?php 
                echo JLMSCSS::_('sectiontableentry2');
                ?>
">
				<?php 
            } else {
                ?>
				<tr valign="middle" style="vertical-align:middle" class="<?php 
                echo JLMSCSS::_('sectiontableentry' . $k);
                ?>
">				
				<?php 
            }
            ?>
					<td align="center"><?php 
            echo $pageNav->limitstart + $i + 1;
            ?>
</td>
					<?php 
            if ($enrollment) {
                ?>
					<td align="center"><?php 
                echo $checked;
                ?>
</td>
开发者ID:parkmi,项目名称:dolschool14,代码行数:67,代码来源:joomla_lms.html.php

示例11: showList


//.........这里部分代码省略.........
			</th>
			<th>
			<?php 
        echo T_('Section');
        ?>
			</th>
			<th>
			<?php 
        echo T_('Category');
        ?>
			</th>
			<th width="70px">
			<?php 
        echo T_('ID');
        ?>
			</th>
		</tr>
		<?php 
        $k = 0;
        $i = 0;
        $n = count($contents);
        foreach ($contents as $row) {
            ?>
			<tr class="<?php 
            echo "row" . $k;
            ?>
">
				<td align="center" width="30px">
				<?php 
            echo $i + 1 + $pageNav_content->limitstart;
            ?>
				</td>
				<td width="20px" align="center"><?php 
            echo mosHTML::idBox($i, $row->id);
            ?>
</td>
				<td width="20px"></td>
				<td nowrap>
				<?php 
            echo $row->title;
            ?>
				</td>
				<td align="center" width="20%">
				<?php 
            echo $row->sectname;
            ?>
				</td>
				<td align="center" width="20%">
				<?php 
            echo $row->catname;
            ?>
				</td>
				<td align="center">
				<?php 
            echo $row->id;
            ?>
				</td>
			</tr>
			<?php 
            $k = 1 - $k;
            $i++;
        }
        ?>
		</table>
		<?php 
        echo $pageNav_content->getListFooter();
开发者ID:jwest00724,项目名称:mambo,代码行数:67,代码来源:admin.trash.html.php

示例12: showMessages

    function showMessages(&$rows, $pageNav, $search, $option)
    {
        ?>
		<form action="index2.php" method="post" name="adminForm">
		
		<table class="adminheading">
		<tr>
			<th class="inbox">
				Mensagem Privada
			</th>
			<td>
				Procurar:
			</td>
			<td> 
				<input type="text" name="search" value="<?php 
        echo htmlspecialchars($search);
        ?>
" class="inputbox" onChange="document.adminForm.submit();" />
			</td>
		</tr>
		</table>
  
		<table class="adminlist">
		<tr>
			<th width="20">
				nº
			</th>
			<th width="5%" class="title"> 
				<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php 
        echo count($rows);
        ?>
);" />
			</th>
			<th width="60%" class="title">
				Assunto
			</th>
			<th width="15%" class="title">
				De
			</th>
			<th width="15%" class="title">
				Data
			</th>
			<th width="5%" class="title">
				Lida
			</th>
		</tr>
		<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td width="20">
					<?php 
            echo $i + 1 + $pageNav->limitstart;
            ?>
				</td>
				<td width="5%">
					<?php 
            echo mosHTML::idBox($i, $row->message_id);
            ?>
				</td>
				<td width="60%"> 
					<a href="#edit" onClick="hideMainMenu();return listItemTask('cb<?php 
            echo $i;
            ?>
','view')">
						<?php 
            echo $row->subject;
            ?>
</a> 
				</td>
				<td width="15%">
					<?php 
            echo $row->user_from;
            ?>
				</td>
				<td width="15%">
					<?php 
            echo $row->date_time;
            ?>
				</td>
				<td width="15%">
					<?php 
            if (intval($row->state) == "1") {
                echo 'Lida';
            } else {
                echo 'Não Lida';
            }
            ?>
				</td>
			</tr>
			<?php 
            $k = 1 - $k;
        }
        ?>
		</table>
//.........这里部分代码省略.........
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:101,代码来源:admin.messages.html.php

示例13: showWeblinks

    function showWeblinks($option, &$rows, &$lists, &$search, &$pageNav)
    {
        global $my, $adminLanguage;
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th>
			<?php 
        echo $adminLanguage->A_COMP_WEBL_MANAGER;
        ?>
			</th>
			<td>
			<?php 
        echo $adminLanguage->A_COMP_FILTER;
        ?>
:
			</td>
			<td>
			<input type="text" name="search" value="<?php 
        echo $search;
        ?>
" class="text_area" onChange="document.adminForm.submit();" />
			</td>
			<td width="right">
			<?php 
        echo $lists['catid'];
        ?>
			</td>
		</tr>
		</table>

		<table class="adminlist">
		<tr>
			<th width="20">
			<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php 
        echo count($rows);
        ?>
);" />
			</th>
			<th class="title" width="40%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_TITLE;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_PUBLISHED;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_WEBL_APPROVED;
        ?>
			</th>
			<th colspan="2">
			<?php 
        echo $adminLanguage->A_COMP_REORDER;
        ?>
			</th>
			<th width="25%" align="center" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_CATEG;
        ?>
			</th>
			<th width="10%" align="left" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_HITS;
        ?>
			</th>
			<th width="10%" nowrap="nowrap">
			<?php 
        echo $adminLanguage->A_COMP_CHECKED_OUT;
        ?>
			</th>
		</tr>
		<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $task = $row->published ? 'unpublish' : 'publish';
            $img = $row->published ? 'publish_g.png' : 'publish_x.png';
            $alt = $row->published ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_UNPUBLISHED;
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id, $row->checked_out && $row->checked_out != $my->id);
            ?>
				</td>
				<td width="50%">
				<?php 
            if ($row->checked_out && $row->checked_out != $my->id) {
                ?>
					<?php 
                echo $row->title;
                ?>
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:admin.weblinks.html.php

示例14: show

    function show(&$rows, $myid, &$pageNav, &$lists, $type)
    {
        global $my, $mosConfig_absolute_path;
        $section = "com_docman";
        $section_name = "DOCman";
        ?>
		<form action="index2.php" method="post" name="adminForm">

        <?php 
        dmHTML::adminHeading(_DML_CATS, 'categories');
        ?>


		<table class="adminlist">
        <thead>
		<tr>
			<th width="20">
			#
			</th>
			<th width="20">
			<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php 
        echo count($rows);
        ?>
);" />
			</th>
			<th class="title"><?php 
        echo _DML_CATNAME;
        ?>
</th>
			<th width="10%"><?php 
        echo _DML_PUBLISHED;
        ?>
</th>
			<th colspan="2"><?php 
        echo _DML_REORDER;
        ?>
</th>
			<th width="10%"><?php 
        echo _DML_ACCESS;
        ?>
</th>
			<th width="12%"><?php 
        echo _DML_CATEGORY;
        ?>
 ID</th>
			<th width="12%"># <?php 
        echo _DML_DOCS;
        ?>
</th>
			<th width="12%"><?php 
        echo _DML_CHECKED_OUT;
        ?>
</th>
		  </tr>
        </thead>
        <tfoot><tr><td colspan="11"><?php 
        echo $pageNav->getListFooter();
        ?>
</td></tr></tfoot>
        <tbody>
		<?php 
        $k = 0;
        $i = 0;
        $n = count($rows);
        foreach ($rows as $row) {
            $img = $row->published ? 'tick.png' : 'publish_x.png';
            $task = $row->published ? 'unpublish' : 'publish';
            $alt = $row->published ? 'Published' : 'Unpublished';
            if (!$row->access) {
                $color_access = 'style="color: green;"';
                $task_access = 'accessregistered';
            } else {
                if ($row->access == 1) {
                    $color_access = 'style="color: red;"';
                    $task_access = 'accessspecial';
                } else {
                    $color_access = 'style="color: black;"';
                    $task_access = 'accesspublic';
                }
            }
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td width="20" align="right">
				<?php 
            echo $pageNav->rowNumber($i);
            ?>
				</td>
				<td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id, $row->checked_out_contact_category && $row->checked_out_contact_category != $my->id);
            ?>
				</td>
				<td width="35%">
				<?php 
            if ($row->checked_out_contact_category && $row->checked_out_contact_category != $my->id) {
                ?>
					<?php 
//.........这里部分代码省略.........
开发者ID:RangerWalt,项目名称:ecci,代码行数:101,代码来源:categories.html.php

示例15: showPolls

    function showPolls(&$rows, &$pageNav, $option)
    {
        global $my, $adminLanguage;
        ?>
		<form action="index2.php" method="post" name="adminForm">
		<table class="adminheading">
		<tr>
			<th><?php 
        echo $adminLanguage->A_COMP_POLL_MANAGER;
        ?>
</th>
		</tr>
		</table>

		<table class="adminlist">
		<tr>
			<th width="20">
			<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php 
        echo count($rows);
        ?>
);" />
			</th>
			<th align="<?php 
        echo $adminLanguage->RTLsupport ? 'right' : 'left';
        ?>
"> <!-- rtl change -->
			<?php 
        echo $adminLanguage->A_COMP_POLL_TITLE;
        ?>
			</th>
			<th width="15%" align="center">
			<?php 
        echo $adminLanguage->A_COMP_POLL_OPTIONS;
        ?>
			</th>
			<th width="15%" align="center">
			<?php 
        echo $adminLanguage->A_COMP_PUBLISHED;
        ?>
			</th>
			<th width="20%" align="center">
			<?php 
        echo $adminLanguage->A_COMP_CHECKED_OUT;
        ?>
			</th>
		</tr>
		<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $task = $row->published ? 'unpublish' : 'publish';
            $img = $row->published ? 'publish_g.png' : 'publish_x.png';
            $alt = $row->published ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_UNPUBLISHED;
            ?>
			<tr class="<?php 
            echo "row{$k}";
            ?>
">
				<td width="20">
				<?php 
            echo mosHTML::idBox($i, $row->id, $row->checked_out && $row->checked_out != $my->id);
            ?>
				</td>
				<td width="50%">
				<a href="#edit" onclick="return listItemTask('cb<?php 
            echo $i;
            ?>
','edit')">
				<?php 
            echo $row->title;
            ?>
				</a>
				</td>
				<td width="" align="center">
				<?php 
            echo $row->numoptions;
            ?>
&nbsp;
				</td>
				<td width="10%" align="center">
				<a href="javascript: void(0);" onclick="return listItemTask('cb<?php 
            echo $i;
            ?>
','<?php 
            echo $task;
            ?>
')">
				<img src="images/<?php 
            echo $img;
            ?>
" width="12" height="12" border="0" alt="<?php 
            echo $alt;
            ?>
" />
				</a>
				</td>
				<td width="10%" align="center">
				<?php 
            echo $row->editor;
            ?>
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:admin.poll.html.php


注:本文中的mosHTML::idBox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。