Example #1
0
                    $box_actions[] = "<input type='submit' class='xo-message-form' onclick='document.prvmsg.action=\"contbox.php?op=envoimp\"' id='post_messages' value='" . _MP_SUBMIT . "'>";
                } else {
                    $box_actions[] = '<select name="add" class="xo-message-form"  OnChange="window.document.location=this.options[this.selectedIndex].value;" disabled><option selected>' . _MP_MNEWS . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/msgbox.php?op=sendbox&send=1">-> ' . _MP_MMES . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/contbox.php?op=sendbox">-> ' . _MP_MCONT . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/filebox.php?op=sendbox">-> ' . _MP_MFILE . '</option></select>';
                    $box_actions[] = "<input type='submit' class='xo-message-form' onclick='document.prvmsg.action=\"contbox.php?op=envoimp\"' id='stop' disabled value='" . _MP_SUBMIT . "'>";
                }
            }
            $box_actions[] = "<input type='reset' class='xo-message-form' id='reset'  value='" . _MP_CLEAR . "'>";
            $box_actions[] = "<input type='button' class='xo-message-form' OnClick=\"msgpop('&nbsp;" . _MP_HELP_CONTSEND . "&nbsp;')\" value='?'><div id=\"tooltip\" style=\"visibility: hidden;\"></div>";
            $box_actions[] = "<input type='hidden' name='catbox' value='" . $catbox . "'>";
            $box_actions[] = "<input type='hidden' name='after' value='" . $after . "'>";
            $box_actions[] = "<input type='hidden' name='limit_msg' value='" . $limit_msg . "'>";
            $box_actions[] = "<input type='hidden' name='sortname' value='" . $sortname . "'>";
            $box_actions[] = "<input type='hidden' name='sortorder' value='" . $sortorder . "'>";
            $xoopsTpl->assign('box_actions', $box_actions);
            $xoopsTpl->assign('mp_form', $form->render());
            break;
    }
    /* Affiche les Dossiers */
    mp_category($precistotal, $catbox, @$catpid);
    //Language & menu
    $xoopsTpl->assign('lang_private', _PM_PRIVATEMESSAGE);
    $xoopsTpl->assign('lang_rece', _PM_RECE);
    $xoopsTpl->assign('lang_mes', _MP_MESSAGE);
    $xoopsTpl->assign('lang_news', _MP_NEWS);
    $xoopsTpl->assign('lang_file', _MP_FILE);
    $xoopsTpl->assign('lang_menu', MpMenu('contbox.php'));
    $xoopsTpl->assign('mp_precistotal', sprintf(_MP_MDEBIT, $precistotal . '%'));
    // $xoopsTpl->assign('xoops_module_header', $mp_module_header);
    mp_cache();
    include XOOPS_ROOT_PATH . "/footer.php";
}
Example #2
0
                $pm->setVar("formtype", $formtype);
                $pm_arr =& $pm_handler->get($xoopsUser->getVar('uid'));
                if ($pm_arr) {
                    $erreur = $pm_handler->update($pm);
                } else {
                    $erreur = $pm_handler->insert($pm);
                }
                if (!$erreur) {
                    redirect_header("javascript:history.go(-1)", 2, _PM_REDNON);
                } else {
                    redirect_header("optionbox.php?op=box", 2, _MP_REDIF_NOTIF);
                }
            }
            break;
    }
    //Affiche les Dossiers
    mp_category($precistotal, $catbox, @$catpid);
    //Language & menu
    $xoopsTpl->assign('lang_private', _PM_PRIVATEMESSAGE);
    $xoopsTpl->assign('lang_rece', _PM_RECE);
    $xoopsTpl->assign('lang_mes', _MP_MESSAGE);
    $xoopsTpl->assign('lang_news', _MP_NEWS);
    $xoopsTpl->assign('lang_file', _MP_FILE);
    $xoopsTpl->assign('lang_menu', MpMenu('optionbox.php'));
    $xoopsTpl->assign('mp_precistotal', sprintf(_MP_MDEBIT, $precistotal . '%'));
    // $xoopsTpl->assign('lang_msg',  sprintf(_MP_MSG, $cattitle));
    $xoopsTpl->assign('mp_catbox', $catbox);
    // $xoopsTpl->assign('xoops_module_header', $mp_module_header);
    mp_cache();
    include XOOPS_ROOT_PATH . "/footer.php";
}
Example #3
0
                $box_actions[] = "<input type='hidden' name='msg_mp' id='msg_mp' value='" . $msg_mp . "'>";
                $xoopsTpl->assign('box_actions', $box_actions);
            }
            break;
    }
    //alert
    if (!empty($msg_alert)) {
        $xoopsTpl->assign('mp_alert', $msg_alert);
    }
    //Affiche les Dossiers
    mp_category($precistotal, $catbox, @$catpid);
    //Affiche les boutons exportation
    if ($view_perms & GPERM_EXP) {
        $xoopsTpl->assign('mp_pdf', "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/pdf.png' title='" . _MP_DESCPDF . "' style=\"cursor:pointer; border-width: 0px; width: 30px; height: 30px;\" onclick='document.prvmsg.action=\"makepdf.php?option=pdf_messages\";document.prvmsg.submit()'>");
        $xoopsTpl->assign('mp_print', "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/print.png' title='" . _MP_DESCPRINTER . "' style=\" cursor:pointer; border-width: 0px; width: 30px; height: 30px;\" onclick='document.prvmsg.action=\"print.php?option=print_messages\";document.prvmsg.submit()'>");
        $xoopsTpl->assign('mp_email', "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/email.png' title='" . _MP_DESCEMAIL . "' style=\" cursor:pointer; border-width: 0px; width: 30px; height: 30px;\" onclick='document.prvmsg.action=\"email.php?option=email_messages\";document.prvmsg.submit()'>");
    }
    //Language & menu
    $xoopsTpl->assign('lang_private', _PM_PRIVATEMESSAGE);
    $xoopsTpl->assign('lang_rece', _PM_RECE);
    $xoopsTpl->assign('lang_mes', _MP_MESSAGE);
    $xoopsTpl->assign('lang_news', _MP_NEWS);
    $xoopsTpl->assign('lang_file', _MP_FILE);
    $xoopsTpl->assign('lang_menu', MpMenu('msgbox.php?catbox=' . $catbox . ''));
    $xoopsTpl->assign('mp_precistotal', sprintf(_MP_MDEBIT, $precistotal . '%'));
    $xoopsTpl->assign('lang_msg', sprintf(_MP_MSG, $cattitle));
    $xoopsTpl->assign('mp_catbox', $catbox);
    //$xoopsTpl->assign('xoops_module_header', $mp_module_header);
    mp_cache();
    include XOOPS_ROOT_PATH . "/footer.php";
}
Example #4
0
            $xoopsTpl->assign('mp_input_del', "<input type='reset' id='reply' value='" . _MP_CLEAR . "'>");
            if ($view_perms & GPERM_MESS) {
                if (empty($mpstop)) {
                    $box_actions[] = '<select name="add"  class="xo-message-form" OnChange="window.document.location=this.options[this.selectedIndex].value;"><option selected>' . _MP_MNEWS . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/msgbox.php?op=sendbox&send=1">-> ' . _MP_MMES . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/contbox.php?op=sendbox">-> ' . _MP_MCONT . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/filebox.php?op=sendbox">-> ' . _MP_MFILE . '</option></select>';
                    $box_actions[] = "<input type='submit' class='xo-message-form'  onclick='document.prvmsg.action=\"document.prvmsg.action=\"filebox.php?op=envoimp\"' id='lire' value='" . _MP_SUBMIT . "'>";
                } else {
                    $box_actions[] = '<select name="add"  class="xo-message-form"  OnChange="window.document.location=this.options[this.selectedIndex].value;" disabled><option selected>' . _MP_MNEWS . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/msgbox.php?op=sendbox&send=1">-> ' . _MP_MMES . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/contbox.php?op=sendbox">-> ' . _MP_MCONT . '</option><option value="' . XOOPS_URL . '/modules/' . $mydirname . '/filebox.php?op=sendbox">-> ' . _MP_MFILE . '</option></select>';
                    $box_actions[] = "<input type='submit'  class='xo-message-form'  onclick='document.prvmsg.action=\"filebox.php?op=envoimp\"' id='lire' disabled value='" . _MP_SUBMIT . "'>";
                }
            }
            $box_actions[] = "<input type='reset'   class='xo-message-form'  value='" . _MP_CLEAR . "'>";
            $box_actions[] = "<input type='hidden' name='catbox' value='" . $catbox . "'>";
            $xoopsTpl->assign('box_actions', $box_actions);
            break;
    }
    //Affiche les Dossiers
    mp_category($precistotal, $catbox, @$catpid);
    //Language & menu
    $xoopsTpl->assign('lang_private', _PM_PRIVATEMESSAGE);
    $xoopsTpl->assign('lang_rece', _PM_RECE);
    $xoopsTpl->assign('lang_mes', _MP_MESSAGE);
    $xoopsTpl->assign('lang_news', _MP_NEWS);
    $xoopsTpl->assign('lang_file', _MP_FILE);
    $xoopsTpl->assign('lang_debit', _MP_MDEBIT);
    $xoopsTpl->assign('mp_precistotal', sprintf(_MP_MDEBIT, $precistotal . '%'));
    $xoopsTpl->assign('lang_menu', MpMenu('filebox.php'));
    $xoopsTpl->assign('mp_catbox', $catbox);
    //$xoopsTpl->assign('xoops_module_header', $mp_module_header);
    mp_cache();
    include XOOPS_ROOT_PATH . "/footer.php";
}