Exemplo n.º 1
0
        echo '<pre><strong>' . $dirup . '</strong><br />';
        echo _MP_LENGTH . ':<b> ' . MPPrettySize($taille) . '</b><br />';
        echo "</td></tr></table><br />";
        echo "<br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr class=\"odd\"><td>";
        echo '<pre>Table: <strong>' . $row['Name'] . '</strong><br />';
        echo _MP_LENGTH . ':<b> ' . MPPrettySize($row['Data_length']) . '</b><br />';
        echo _MP_DATE_FREE . ':<b> ' . MPPrettySize($row['Data_free']) . '&nbsp;<a href="index.php?op=optimise">' . $optimise . '</a></b><br />';
        echo _MP_TOTAL . ':<b> ' . MPPrettySize($row['Data_length'] + $row['Index_length']) . '</b><br />';
        echo "</td></tr></table><br />";
        echo "<br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr class=\"odd\"><td>";
        echo '<pre>Table: <strong>' . $myrow['Name'] . '</strong><br />';
        echo _MP_LENGTH . ':<b> ' . MPPrettySize($myrow['Data_length']) . '</b><br />';
        echo _MP_DATE_FREE . ':<b> ' . MPPrettySize($myrow['Data_free']) . '&nbsp;<a href="index.php?op=optimisesauv">' . $optimise . '</a></b><br />';
        echo _MP_TOTAL . ':<b> ' . MPPrettySize($myrow['Data_length'] + $myrow['Index_length']) . '</b><br />';
        echo "</td></tr></table></div><br />";
        //Alert stokage
        mp_collapsableBar('bottomtable', 'bottomtableicon');
        echo "<img onclick='toggle('bottomtable'); toggleIcon('bottomtableicon');' id='bottomtableicon' name='bottomtableicon' src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/close12.gif alt='' /></a>&nbsp;" . _MP_STOCK . "</h4>";
        echo "<div id='bottomtable'>";
        $mp_alert = $row['Data_length'] + $row['Index_length'] + $myrow['Data_length'] + $myrow['Index_length'];
        if ($mp_alert > $xoopsModuleConfig['maxalert']) {
            echo "<br /><table width='100%' border='0' cellspacing='1' class='outer'><tr class=\"odd\"><td>" . _MP_ALERT . ":<b>" . MPPrettySize($mp_alert) . "</b> sur <b>" . MPPrettySize($xoopsModuleConfig['maxalert']) . "</b><br /></td></tr></table>";
        } else {
            echo "<br /><table width='100%' border='0' cellspacing='1' class='outer'><tr class=\"odd\"><td>";
            $precis = number_format($mp_alert * 100 / $xoopsModuleConfig['maxalert'], 0, ",", " ");
            printf(_MP_POURCENT, $precis . '%');
            echo "<span style='border: 1px solid rgb(0, 0, 0); background: rgb(255, 255, 255) none repeat scroll 0%; margin-top: 2px; text-align:left; margin-right: 4px; margin-left: 4px; display: block; height: 15px; width: 90%; float: left;  overflow: hidden;'>\r\n      <span style='background:  " . $xoopsModuleConfig['cssbtext'] . " none repeat scroll 0%; display: block; height: 15px; font-size: 5px; width: " . $precis . "%;'></span></span></td></tr></table></div>";
        }
        break;
}
xoops_cp_footer();
Exemplo n.º 2
0
        }
        mp_adminmenu(6, _MP_ADMENU6);
        mp_collapsableBar('toptable', 'toptableicon');
        echo "<img onclick='toggle('toptable'); toggleIcon('toptableicon');' id='toptableicon' name='toptableicon' src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/close12.gif alt='' /></a>&nbsp;" . _MP_FILEPUBLIC . "</h4>";
        echo "<div id='toptable'>";
        echo '<br /><table width="100%" cellspacing="1" class="outer">' . '<tr>' . "<td class='head' align='center'>" . _MP_ID . "</td><td class='head' align='center'>" . _MP_FILETITLE . "</td><td class='head' align='center'>" . _MP_FILEMSG . "</td></tr>";
        foreach (array_keys($pm_cat) as $i) {
            $criteria = new CriteriaCompo();
            $criteria->add(new Criteria('cat_msg', $pm_cat[$i]->getVar('cid')));
            $numrows = $pm_handler->getCount($criteria);
            echo '<tr><td class="even" align="center">' . $pm_cat[$i]->getVar('cid') . '</td>			
 <td class="even" align="center">' . $pm_cat[$i]->getVar('title') . '</td>
 <td class="even" align="center">' . $numrows . '</td></tr>';
        }
        echo "</table></div><br />";
        mp_collapsableBar('toptable', 'toptableicon');
        echo "<img onclick='toggle('toptable'); toggleIcon('toptableicon');' id='toptableicon' name='toptableicon' src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/close12.gif alt='' /></a>&nbsp;" . _MP_FILEDESC . "</h4>";
        echo "<div id='toptable'>";
        echo '<br /><form name="prvmsg" method="post" action="file.php">
 <table width="100%" cellspacing="1" class="outer"><tr>
 <td class="head" align="center">' . _MP_ID . '</td><td class="head" align="center">' . _MP_RECEVER . '</td>
 <td class="head" align="center">' . _MP_FILETITLE . '</td><td class="head" align="center">' . _MP_FILEMSG . '</td>
 <td class="head" align="center">&nbsp;</td></tr>';
        foreach (array_keys($pm_cat2) as $i) {
            $criteria = new CriteriaCompo();
            $criteria->add(new Criteria('cat_msg', $pm_cat2[$i]->getVar('cid')));
            $numrows = $pm_handler->getCount($criteria);
            echo '<tr><td class="even" align="center">' . $pm_cat2[$i]->getVar('cid') . '</td>			
 <td class="odd" align="center">' . ($from_user = XoopsUser::getUnameFromId($pm_cat2[$i]->getVar('uid')) . '<br /></td>
 <td class="even" align="center">' . $pm_cat2[$i]->getVar('title') . '</td>
 <td class="even" align="center">' . $numrows . '</td><td class="even" align="center">
Exemplo n.º 3
0
        $limit_select = array('10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30);
        $promotray = new XoopsFormElementTray(_MP_TRIE_PAR);
        $liste_limit = new XoopsFormSelect(_MP_TRIE_PAR, "limit", $limit);
        $liste_limit->addOptionArray($limit_select);
        $form->addElement(new XoopsFormTextDateSelect(_PM_AM_NOTIFAFTER, 'after', '', @$after));
        $form->addElement(new XoopsFormTextDateSelect(_PM_AM_NOTIFBEFORE, 'before', '', @$before));
        $texte_hidden = new XoopsFormHidden("op", "tris");
        $form->addElement($liste_limit);
        $form->addElement($texte_hidden);
        $button_tray = new XoopsFormElementTray(_MP_ACTION, '');
        $button_tray->addElement(new XoopsFormButton('', 'reset', _MP_CLEAR, 'reset'));
        $button_tray->addElement(new XoopsFormButton('', 'submit', _MP_SUBMIT, 'submit'));
        $form->addElement($button_tray);
        $form->display();
        echo "</td></tr></table></div><br />";
        mp_collapsableBar('midletable', 'midletableicon');
        echo "<img onclick='toggle('midletable'); toggleIcon('midletableicon');' id='midletableicon' name='midletableicon' src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/close12.gif alt='' /></a>&nbsp;" . _MP_DRESULT . "</h3>\r\n <div id='midletable'>";
        if ($numrows > 0) {
            echo '<table width="100%" cellspacing="1" class="outer"><tr>
 <th align="center" colspan="7"><b>(' . $numrows . ') ' . _MP_LAST10NOTIF . '</b></th>
 </tr><tr><form name="prvmsg" method="post" action="notification.php">
 <td class="head" align="center">' . _MP_NICKNAME . '</td><td class="head" align="center">' . _MP_REELNAME . '</td>
 <td class="head" align="center">' . _PM_NOTIF_REGDATE . '</td><td class="head" align="center">' . _PM_NOTIF_LAST . '</td>
 <td class="head" align="center">' . _MP_NB . '</td><td align="center" class="head">
 <input name="allbox" id="allbox" onclick="xoopsCheckAll(\'prvmsg\', \'allbox\');" type="checkbox" value="Check All" /></td></tr>';
            foreach (array_keys($foundusers) as $i) {
                $criteria = new CriteriaCompo();
                $criteria->add(new Criteria('to_userid', $foundusers[$i]->getVar("uid")));
                $numpm = $pm_handler->getCount($criteria);
                $uname = $foundusers[$i]->getVar("uname");
                $name = $foundusers[$i]->getVar("name");