Example #1
0
 function editform()
 {
     global $xoopsModule, $HTTP_SERVER_VARS, $HTTP_POST_VARS, $groupid, $myts, $xoopsConfig, $xoopsUser, $xoopsDB, $textareaname, $wfsConfig;
     include XOOPS_ROOT_PATH . "/include/xoopscodes.php";
     $textareaname = '';
     //$maintext = '';
     echo "<table width='100%' border='0' cellspacing='0' cellpadding='1'>";
     echo "<table><tr><td><form action='index.php' method='post' name='coolsus'>";
     echo "<div><b>" . _AM_GROUPPROMPT . "</b><br />";
     if (isset($this->groupid)) {
         listGroups($this->groupid);
     } else {
         listGroups();
     }
     echo "<br />";
     echo "</div><br />";
     echo "<div><b>" . _WFS_CATEGORY . "</b><br>";
     $xt = new WfsCategory();
     if (isset($this->categoryid)) {
         $xt->makeSelBox(0, $this->categoryid, "categoryid");
     } else {
         $xt->makeSelBox(0, 0, "categoryid");
     }
     echo "</div><br />";
     echo "<div><b>" . _AM_ARTICLEWEIGHT . "</b><br />";
     echo "<input type='text' name='weight' id='weight' value='";
     if (isset($this->weight)) {
         echo $this->weight("F");
     } else {
         $this->weight = 0;
         echo $this->weight("F");
     }
     echo "' size='5' /></div><br>";
     echo "<div>" . _WFS_CAUTH . "<br></div>";
     echo "<div><select name='changeuser'>";
     echo "<option value='-1'>------</option>";
     $result = $xoopsDB->query("SELECT uid, uname FROM " . $xoopsDB->prefix("users") . " ORDER BY uname");
     while (list($uid, $uname) = $xoopsDB->fetchRow($result)) {
         if ($uid == $this->uid) {
             $opt_selected = "selected='selected'";
         } else {
             $opt_selected = "";
         }
         echo "<option value='" . $uid . "' {$opt_selected}>" . $uname . "</option>";
     }
     echo "</select></div><br />";
     echo "<div><b>" . _WFS_TITLE . "</b><br />";
     echo "<input type='text' name='title' id='title' value='";
     if (isset($this->title)) {
         if ($this->titleFlag) {
             echo $this->title("F");
         } else {
             echo $this->title("E");
         }
     }
     echo "' size='50' /></div><br />";
     //HTML Page Seclection//
     echo "<div><b>" . _WFS_HTMLPAGE . "</b></div>";
     //echo " <b>HTML Path: </b>".$htmlpath."<br /><br /></div>";
     $html_array = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . '/' . $wfsConfig['htmlpath']);
     echo "<div><select size='1' name='htmlpage'>";
     echo "<option value=' '>------</option>";
     foreach ($html_array as $htmlpage) {
         if ($htmlpage == $this->htmlpage()) {
             $opt_selected = "selected='selected'";
         } else {
             $opt_selected = "";
         }
         echo "<option value='" . $htmlpage . "' {$opt_selected}>" . $htmlpage . "</option>";
     }
     echo "</select>";
     $htmlpath = XOOPS_ROOT_PATH . '/' . $wfsConfig['htmlpath'];
     echo " <b>HTML Path: </b>" . $htmlpath . "<br /><br /></div>";
     //echo "</div><br />";
     echo "<div><b>" . _WFS_MAINTEXT . "</b></div>";
     if (isset($this->maintext)) {
         if ($this->maintextFlag) {
             $GLOBALS['maintext'] = $this->maintext("F");
         } else {
             $GLOBALS['maintext'] = $this->maintext("E");
         }
     }
     if (!strstr($HTTP_SERVER_VARS["HTTP_USER_AGENT"], "MSIE")) {
         $wfsConfig['wysiwygeditor'] = '0';
     }
     if ($wfsConfig['wysiwygeditor'] == '1') {
         html_editor('maintext');
         $smiliepath = $wfsConfig['smiliepath'];
         $smilie_array = XoopsLists::getimgListAsArray(XOOPS_ROOT_PATH . "/" . $smiliepath);
         echo "<br /><div style='text-align: left;'><b>" . _AM_SMILIE . "</b><br />";
         echo "<table><tr><td align='top' valign='left'>";
         echo "<div><script type='text/javascript'>\n\t\t<!--\n\t\t\tfunction showbutton() {\n\t\t\t   \tdocument.all." . $textareaname . "_mysmile.src = '" . $xoopsConfig['xoops_url'] . "/{$smiliepath}/' + document.all." . $textareaname . "_smiley.value;\n\t\t\t}\n\t\t// -->\n\t\t</script>";
         echo "<select name='" . $textareaname . "_smiley' onchange='showbutton();'>";
         foreach ($smilie_array as $file) {
             echo "<option value='" . $file . "' {$opt_selected}>" . $file . "</option>";
         }
         echo "</select></td><td align='top' valign='left'>";
         echo "<img name='" . $textareaname . "_mysmile' src='" . $xoopsConfig['xoops_url'] . "/{$smiliepath}/{$file}' style='cursor:hand;' border='0' onclick=\"doFormat('InsertImage', document.all." . $textareaname . "_mysmile.src);\" />";
         echo "</td></tr></table>\n\t\t<script type='text/javascript'>\n\t\t\tshowbutton();\n\t\t</script>";
         //Start of article images
         $graphpath = $wfsConfig['graphicspath'];
         $graph_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . "/" . $graphpath);
         echo "<br><div style='text-align: left;'><b>" . _AM_GRAPHIC . "</b><br />";
         echo "<table><tr><td align='top' valign='left'>";
         echo "<script type='text/javascript'>\n\t\t<!--\n\t\t\tfunction showbutton2() {\n\t\t\t\tdocument.all." . $textareaname . "_mygraph.src = '" . $xoopsConfig['xoops_url'] . "/{$graphpath}/' + document.all." . $textareaname . "_graph.value;\n\t\t\t}\n\t\t// -->\n\t\t</script>";
         echo "<select name='" . $textareaname . "_graph' onchange='showbutton2();'>";
         foreach ($graph_array as $file2) {
             echo "<option value='" . $file2 . "' {$opt_selected}>" . $file2 . "</option>";
         }
         echo "</select></td><td align='top' valign='left'>";
         echo "<img name='" . $textareaname . "_mygraph' src='" . $xoopsConfig['xoops_url'] . "/{$graphpath}/{$file2}' style='cursor:hand;' border='0' onclick=\"doFormat('InsertImage', document.all." . $textareaname . "_mygraph.src);\" />";
         echo "</td></tr></table>\n\t\t<script type='text/javascript'>\n\t\t\tshowbutton2();\n\t\t</script>";
     } else {
         xoopsCodeTarea("maintext", 60, 15);
         xoopsSmilies("maintext");
     }
     echo "<div><b>" . _WFS_SUMMARY . "</b></div>";
     echo "<div><textarea id='summary' name='summary' wrap='virtual' cols='60' rows='5'>";
     if (isset($this->summary)) {
         if ($this->summaryFlag) {
             echo $this->summary("F");
         } else {
             echo $this->summary("E");
         }
     }
     echo "</textarea></div>";
     echo "<div class = 'bg3'><h4>" . _WFS_ARTICLELINK . "</h4></div>";
     echo "<div><b>" . _WFS_LINKURL . "</b><br />";
     echo "<input type='text' name='url' id='url' value='";
     if (isset($this->url)) {
         echo $this->url("F");
     }
     echo "' size='70' /></div><br />";
     echo "<div><b>" . _WFS_LINKURLNAME . "</b><br />";
     echo "<input type='text' name='urlname' id='urlname' value='";
     if (isset($this->urlname)) {
         echo $this->urlname("F");
     }
     echo "' size='50' /></div><br>";
     echo "<div class = 'bg3'><h4>" . _WFS_ATTACHEDFILES . "</h4></div>";
     echo "<div>" . _WFS_ATTACHEDFILESTXT . "</div><br />";
     if (empty($this->articleid)) {
         echo _WFS_AFTERREGED . "<br />";
     } elseif ($num = $this->getFilesCount()) {
         echo "<table border='1' style='border-collapse: collapse' bordercolor='#ffffff' width='100%' >";
         echo "<tr class='bg3'><td align='center'>" . _AM_FILEID . "</td><td align='center'>" . _AM_FILEICON . "</td><td align='center'>" . _AM_FILESTORE . "</td><td align='center'>" . _AM_REALFILENAME . "</td><td align='center'>" . _AM_USERFILENAME . "</td><td align='center' class='nw'>" . _AM_FILEMIMETYPE . "</td><td align='center' class='nw'>" . _AM_FILESIZE . "</td><td align='center'>" . _AM_ACTION . "</td></tr>";
         foreach ($this->files as $attached) {
             if (is_file(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath'] . "/" . $attached->getFileRealName())) {
                 $filename = $attached->getFileRealName();
             } else {
                 $filename = "File Error!";
             }
             $fileid = $attached->getFileid();
             $mimetype = new mimetype();
             $icon = get_icon(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath'] . "/" . $filename);
             $iconshow = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/" . $icon . " align='middle'>";
             if (is_file(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath'] . "/" . $filename)) {
                 $size = Prettysize(filesize(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath'] . "/" . $filename));
             } else {
                 $size = '0';
             }
             $filerealname = $attached->downloadname;
             $mimeshow = $mimetype->getType(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath'] . "/" . $filename);
             $counter = $attached->getCounter();
             $linkedname = $attached->getFileShowName();
             //$linkedname = $attached->getLinkedName(XOOPS_URL."/modules/".$xoopsModule->dirname()."/download.php?fileid=");
             $editlink = "<a href='index.php?op=fileedit&amp;fileid=" . $fileid . "'>" . _AM_EDIT . "</a>";
             $dellink = "<a href='index.php?op=delfile&amp;fileid=" . $fileid . "'>" . _AM_DELETE . "</a>";
             echo "<tr><td align='center'><b>" . $fileid . "</b>";
             echo "</td><td align='center'>" . $iconshow . "";
             echo "</td><td align='center'>" . $filename . "";
             echo "</td><td align='center'>" . $filerealname . "";
             echo "</td><td align='center'>" . $linkedname . "";
             echo "</td><td align='center'>" . $mimeshow . "";
             echo "</td><td align='center'>" . $size . "";
             //echo "</td><td align='center' class='nw'>".$counter."";
             echo "</td><td align='center'>" . $editlink . " " . $dellink . "";
             echo "</td></tr>";
         }
         echo "</table>";
     } else {
         echo "<div align='left'>" . _WFS_NOFILE . "</div>";
     }
     echo "</div><br />";
     echo "<div class = 'bg3'><h4>" . _WFS_MISCSETTINGS . "</h4></div>";
     echo "<input type='checkbox' name='autodate' value='1'";
     if (isset($autodate) && $autodate == 1) {
         echo " checked='checked'";
     }
     echo "> ";
     $time = time();
     if (!empty($this->articleid)) {
         $isedit = 1;
     }
     if (isset($isedit) && $isedit == 1 && $this->published > $time) {
         echo "<b>" . _AM_CHANGEDATETIME . "</b><br /><br />";
         printf(_AM_NOWSETTIME, formatTimestamp($this->published));
         $published = xoops_getUserTimestamp($this->published);
         echo "<br /><br />";
         printf(_AM_CURRENTTIME, formatTimestamp($time));
         echo "<br />";
         echo "<input type='hidden' name='isedit' value='1' />";
     } else {
         echo "<b>" . _AM_SETDATETIME . "</b><br /><br />";
         printf(_AM_CURRENTTIME, formatTimestamp($time));
         echo "<br />";
     }
     echo "<br /> &nbsp; " . _AM_MONTHC . " <select name='automonth'>";
     if (isset($automonth)) {
         $automonth = intval($automonth);
     } elseif (isset($this->published)) {
         $automonth = date('m', $this->published);
     } else {
         $automonth = date('m');
     }
     for ($xmonth = 1; $xmonth < 13; $xmonth++) {
         if ($xmonth == $automonth) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xmonth}' {$sel}>{$xmonth}</option>";
     }
     echo "</select>&nbsp;";
     echo _AM_DAYC . " <select name='autoday'>";
     if (isset($autoday)) {
         $autoday = intval($autoday);
     } elseif (isset($published)) {
         $autoday = date('d', $this->published);
     } else {
         $autoday = date('d');
     }
     for ($xday = 1; $xday < 32; $xday++) {
         if ($xday == $autoday) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xday}' {$sel}>{$xday}</option>";
     }
     echo "</select>&nbsp;";
     echo _AM_YEARC . " <select name='autoyear'>";
     if (isset($autoyear)) {
         $autoyear = intval($autoyear);
     } elseif (isset($this->published)) {
         $autoyear = date('Y', $this->published);
     } else {
         $autoyear = date('Y');
     }
     $cyear = date('Y');
     for ($xyear = $autoyear - 8; $xyear < $cyear + 2; $xyear++) {
         if ($xyear == $autoyear) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xyear}' {$sel}>{$xyear}</option>";
     }
     echo "</select>";
     echo "&nbsp;" . _AM_TIMEC . " <select name='autohour'>";
     if (isset($autohour)) {
         $autohour = intval($autohour);
     } elseif (isset($this->publishedshed)) {
         $autohour = date('H', $this->published);
     } else {
         $autohour = date('H');
     }
     for ($xhour = 0; $xhour < 24; $xhour++) {
         if ($xhour == $autohour) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xhour}' {$sel}>{$xhour}</option>";
     }
     echo "</select>";
     echo " : <select name='automin'>";
     if (isset($automin)) {
         $automin = intval($automin);
     } elseif (isset($published)) {
         $automin = date('i', $published);
     } else {
         $automin = date('i');
     }
     for ($xmin = 0; $xmin < 61; $xmin++) {
         if ($xmin == $automin) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         $xxmin = $xmin;
         if ($xxmin < 10) {
             $xxmin = "{$xmin}";
         }
         echo "<option value='{$xmin}' {$sel}>{$xxmin}</option>";
     }
     echo "</select></br />";
     echo "<br /><input type='checkbox' name='autoexpdate' value='1'";
     if (isset($autoexpdate) && $autoexpdate == 1) {
         echo " checked='checked'";
     }
     echo "> ";
     $time = time();
     if (isset($isedit) && $isedit == 1 && $this->expired > 0) {
         echo "<b>" . _AM_CHANGEEXPDATETIME . "</b><br /><br />";
         printf(_AM_NOWSETEXPTIME, formatTimestamp($this->expired));
         echo "<br /><br />";
         $expired = xoops_getUserTimestamp($this->expired);
         printf(_AM_CURRENTTIME, formatTimestamp($time));
         echo "<br />";
         echo "<input type='hidden' name='isedit' value='1' />";
     } else {
         echo "<b>" . _AM_SETEXPDATETIME . "</b><br /><br />";
         printf(_AM_CURRENTTIME, formatTimestamp($time));
         echo "<br />";
     }
     echo "<br /> &nbsp; " . _AM_MONTHC . " <select name='autoexpmonth'>";
     if (isset($autoexpmonth)) {
         $autoexpmonth = intval($autoexpmonth);
     } elseif (isset($expired)) {
         $autoexpmonth = date('m', $expired);
     } else {
         $autoexpmonth = date('m');
         $autoexpmonth = $autoexpmonth + 1;
     }
     for ($xmonth = 1; $xmonth < 13; $xmonth++) {
         if ($xmonth == $autoexpmonth) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xmonth}' {$sel}>{$xmonth}</option>";
     }
     echo "</select>&nbsp;";
     echo _AM_DAYC . " <select name='autoexpday'>";
     if (isset($autoexpday)) {
         $autoexpday = intval($autoexpday);
     } elseif (isset($expired)) {
         $autoexpday = date('d', $expired);
     } else {
         $autoexpday = date('d');
     }
     for ($xday = 1; $xday < 32; $xday++) {
         if ($xday == $autoexpday) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xday}' {$sel}>{$xday}</option>";
     }
     echo "</select>&nbsp;";
     echo _AM_YEARC . " <select name='autoexpyear'>";
     if (isset($autoexpyear)) {
         $autoyear = intval($autoexpyear);
     } elseif (isset($expired)) {
         $autoexpyear = date('Y', $expired);
     } else {
         $autoexpyear = date('Y');
     }
     $cyear = date('Y');
     for ($xyear = $autoexpyear - 8; $xyear < $cyear + 2; $xyear++) {
         if ($xyear == $autoexpyear) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xyear}' {$sel}>{$xyear}</option>";
     }
     echo "</select>";
     echo "&nbsp;" . _AM_TIMEC . " <select name='autoexphour'>";
     if (isset($autoexphour)) {
         $autoexphour = intval($autoexphour);
     } elseif (isset($expired)) {
         $autoexphour = date('H', $expired);
     } else {
         $autoexphour = date('H');
     }
     for ($xhour = 0; $xhour < 24; $xhour++) {
         if ($xhour == $autoexphour) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         echo "<option value='{$xhour}' {$sel}>{$xhour}</option>";
     }
     echo "</select>";
     echo " : <select name='autoexpmin'>";
     if (isset($autoexpmin)) {
         $autoexpmin = intval($autoexpmin);
     } elseif (isset($expired)) {
         $autoexpmin = date('i', $expired);
     } else {
         $autoexpmin = date('i');
     }
     for ($xmin = 0; $xmin < 61; $xmin++) {
         if ($xmin == $autoexpmin) {
             $sel = 'selected="selected"';
         } else {
             $sel = '';
         }
         $xxmin = $xmin;
         if ($xxmin < 10) {
             $xxmin = "0{$xmin}";
         }
         echo "<option value='{$xmin}' {$sel}>{$xxmin}</option>";
     }
     echo "</select><br /><br />";
     if (isset($this->published) && $this->published == 0 && isset($this->type) && $this->type == "user") {
         echo "<div><input type='checkbox' name='approved' value='1' checked='checked'>&nbsp;<b>" . _AM_APPROVE . "</b></div><br />";
     }
     echo "<br /><div><input type='checkbox' name='nosmiley' value='1'";
     if (isset($this->nosmiley) && $this->nosmiley == 1) {
         echo " checked='checked'";
     }
     echo " /> <b>" . _WFS_DISAMILEY . "</b></div>";
     echo "<div><input type='checkbox' name='nohtml' value='1'";
     if (isset($this->nohtml) && $this->nohtml == 1) {
         echo " checked='checked'";
     }
     echo " /> <b>" . _WFS_DISHTML . "</b><br />";
     echo "</div><br />";
     if (isset($isedit) && $isedit == 1) {
         echo "<input type='checkbox' name='movetotop' value='1'";
         if (isset($movetotop) && $movetotop == 1) {
             echo " checked='checked'";
         }
         echo " />&nbsp;<b>" . _AM_MOVETOTOP . "</b><br />";
     }
     echo "<br /><div><input type='checkbox' name='justhtml' value='2'";
     if (isset($this->htmlpage) && $this->ishtml == '2') {
         echo " checked='checked'";
     }
     echo " />" . _AM_JUSTHTML . "<br /></div>";
     echo "<div><input type='checkbox' name='noshowart' value='1'";
     if (isset($this->noshowart) && $this->noshowart == 1) {
         echo " checked='checked'";
     }
     echo " /> " . _AM_NOSHOART . "<br />";
     echo "</div><br />";
     echo "<input type='checkbox' name='offline' value='1'";
     if (isset($this->offline) && $this->offline == 1) {
         echo " checked='checked'";
     }
     echo " />&nbsp;" . _AM_OFFLINE . "<br />";
     echo "<br />";
     if (!empty($this->articleid)) {
         echo "<input type='hidden' name='articleid' value='" . $this->articleid . "' />\n";
     }
     if (!empty($HTTP_POST_VARS['referer'])) {
         echo "<input type='hidden' name='referer' value='" . $HTTP_POST_VARS['referer'] . "' />\n";
     } elseif (!empty($HTTP_SERVER_VARS['HTTP_REFERER'])) {
         echo "<input type='hidden' name='referer' value='" . $HTTP_SERVER_VARS['HTTP_REFERER'] . "' />\n";
     }
     echo "<input type='submit' name='op' class='formButton' value='Preview' />&nbsp;<input type='submit' name='op' class='formButton' value='Save' />&nbsp;<input type='submit' name='op' class='formButton' value='Clean' />";
     echo "</form>";
     echo "</td></tr></table>";
     if (!empty($this->articleid)) {
         echo "<hr />";
         $upload = new UploadFile();
         echo $upload->formStart("index.php?op=fileup");
         echo "<h4>" . _WFS_FILEUPLOAD . "</h4>\n";
         echo "" . _WFS_ATTACHFILEACCESS . "<br />";
         echo "<br /><b>" . _WFS_ATTACHFILE . "</b><br />";
         echo $upload->formMax();
         echo $upload->formField();
         echo "<br /><br /><b>" . _WFS_FILESHOWNAME . "</b><br />";
         echo "<input type='text' name='fileshowname' id='fileshowname' value='";
         if (isset($this->fileshowname)) {
             echo $this->fileshowname;
         }
         echo "' size='70' maxlength='80' /><br />";
         echo "<br /><b>" . _WFS_FILEDESCRIPT . "</b><br />";
         echo "<textarea name='textfiledescript' cols='50' rows='5'></textarea><br />";
         echo "<br /><b>" . _WFS_FILETEXT . "</b><br />";
         echo "<textarea name='textfilesearch' cols='50' rows='3'></textarea><br />";
         echo "<input type='hidden' name='groupid' value='" . $this->groupip . "' />";
         echo "<input type='hidden' name='articleid' value='" . $this->articleid . "' />";
         echo "<input type='hidden' name='groupid' value= '" . $this->groupid . "' />";
         echo $upload->formSubmit(_WFS_UPLOAD);
         echo $upload->formEnd();
     }
 }
Example #2
0
            <form action="<?php 
                echo $this->href_to('send');
                ?>
" method="post">
                <?php 
                echo html_input('hidden', 'last_date', '', array('id' => 'msg_last_date'));
                ?>
                <?php 
                echo html_input('hidden', 'contact_id', $contact['id']);
                ?>
                <?php 
                echo html_csrf_token();
                ?>
                <div class="editor">
                    <?php 
                echo html_editor('content');
                ?>
                </div>
                <div class="buttons">
                    <span id="error_wrap"></span>
                    <span class="ctrenter_hint">ctrl+enter</span>
                    <?php 
                echo html_button(LANG_SEND, 'send', 'icms.messages.send()');
                ?>
                </div>
            </form>

        <?php 
            }
        }
    }
Example #3
0
    if ($types) {
        ?>
                            <div class="photo_type">
                                <?php 
        echo html_select('', $types);
        ?>
                            </div>
                        <?php 
    }
    ?>
                    </div>
                </div>
            </div>

            <div style="display:none"><?php 
    echo html_editor('', '', array('set_name' => 'photos'));
    ?>
</div> <!-- чтобы редактор был подключен -->

            <div id="album-photos-uploader"></div>

            <script type="text/javascript">
                <?php 
    echo $this->getLangJS('LANG_SELECT_UPLOAD', 'LANG_DROP_TO_UPLOAD', 'LANG_CANCEL', 'LANG_ERROR');
    ?>
                icms.photos.createUploader('<?php 
    echo $this->href_to('upload');
    echo $id ? '/' . $id : '';
    ?>
', function(){
                    var _album_id = $('#album_id').val();
Example #4
0
            ?>
							</div>
							<div class="email field">
								<label><?php 
            echo LANG_COMMENTS_AUTHOR_EMAIL;
            ?>
:</label> <?php 
            echo html_input('text', 'author_email', $email);
            ?>
							</div>
						</div>
					<?php 
        }
        ?>
                    <?php 
        echo $user->is_logged ? html_editor('content') : html_textarea('content');
        ?>
                    <div class="buttons">
						<?php 
        echo html_button(LANG_PREVIEW, 'preview', 'icms.comments.preview()');
        ?>
                        <?php 
        echo html_button(LANG_SEND, 'submit', 'icms.comments.submit()');
        ?>
                    </div>
                    <div class="loading">
                        <?php 
        echo LANG_LOADING;
        ?>
                    </div>
                </form>
Example #5
0
	<table class="tableborder2" cellspacing="1" cellpadding="4" width="99%" align="center" >
		<tr class="head">
			<td colspan="3" align="center">添加视频</td>
		</tr>
		<tr class="b" nowrap>
			<td>视频名称:</td>
			<td colspan="2"><input type="text" name="title" id="title" size="50" maxlength="80" value="">&nbsp;&nbsp;&nbsp;&nbsp;</td>
		</tr>
		<tr class="b" nowrap>
			<td>视频链接:</td>
			<td colspan="2"><input type="text" name="url" id="url" size="70" maxlength="80" value=""><i>eg:http://www.example.com/shipin.swf</i>&nbsp;&nbsp;需带http://</td>
		</tr>
		<tr class="b" nowrap>
			<td>视频介绍:</td>
			<td colspan="2"><?php 
html_editor('content', $result['content'], 'small', '85%', '200px');
?>
</td>
		</tr>
		<tr class="b" nowrap>
			<td>上传图片:</td>
			<td colspan="2"><input type="file" name="uploadpic"><input type="text" name="pic" value="<?php 
echo $result['pic'];
?>
"></td>
		</tr>
		</table>
<br /><center><input type="submit" name="submit" value="提交"></center>
	</form>
</body>
</html>
Example #6
0
 public function displayEditor($field_id, $content = '')
 {
     $dom_id = str_replace(array('[', ']'), array('_', ''), $field_id);
     echo html_editor($field_id, $content, array('id' => $dom_id));
 }
Example #7
0
<table width="100%" border="0" cellpadding="2" cellspacing="6">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
系统设置首页&nbsp;&raquo;&nbsp;</td></tr></table><br /><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder"><tr class="head"><td><div style="float:left; margin-left:10px;padding-top:8px;padding-bottom:8px">邮件发送系统</div><div style="color:#fff000;margin-left:100px;padding-top:8px;padding-bottom:8px"><i>说明:会员量较大时,选择发送给“所有会员”会给系统造成很大的负担,建议不要这么做。</i></div></td></tr></table><br />
<form method="post" name="edit" id="edit" action="mail.php?action=send" enctype="multipart/form-data">
	<table class="tableborder2" cellspacing="1" cellpadding="4" width="99%" align="center" >
		<tr class="head">
			<td colspan="2" align="center">发送邮件</td>
		</tr>
		<tr class="b" nowrap>
			<td>邮件标题:</td>
			<td><input type="text" name="subject" id="subject" size="40" maxlength="80" value="">(<span style="font-weight:bold;color: #FF0000;">*此项必填</span><i>eg:注册大礼送不停</i>)</td>
		</tr>
			<tr class="b" nowrap>
			<td>收件人 :</td>
			<td><input type="text" name="mailto" id="mailto" size="60"  value="" /><input name="getmail" type="submit" id="getmail" value="选择所有会员" onclick="xajax_getUsermail(); return false;" /><i>eg:test@163.com,test2@126.com</i>&nbsp;&nbsp;多个地址之间用","隔开</td>
		</tr>
		<tr class="b" nowrap>
			<td>邮件内容:</td>
			<td><?php 
html_editor('mailbody');
?>
</td>
		</tr>
	</table>
	<br><center><div id="state" name="state"></div><input type="submit" name="submit" value="提 交" onclick="checkform(); return false;"  />&nbsp;&nbsp; <input type="reset" value="重置">&nbsp;&nbsp; </center>

</body>
</html>
Example #8
0
<div id="comments_edit_form" class="modal_form">
    <form action="<?php 
echo $action;
?>
" method="post" class="modal">
        <?php 
echo html_csrf_token();
?>
        <?php 
echo html_input('hidden', 'save', 1);
?>
        <div class="field" id="f_content"><?php 
echo html_editor('content', $comment['content']);
?>
</div>
        <div class="buttons">
            <?php 
echo html_submit(LANG_SAVE);
?>
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function (){
        $('#comments_edit_form form').on('submit', function (){
            return icms.forms.submitAjax(this);
        });
    });
    function successSaveComment (form, result){
        $('#'+result.comment_id+' .comment_text_edit').html(result.text);
        icms.modal.close();
Example #9
0
		</tr>
		<tr class="b" nowrap>
			<td>文章名称:</td>
			<td><input type="text" name="name" id="name" size="40" maxlength="80" value="<?php 
echo $result['title'];
?>
"><span style="font-weight:bold;color: #FF0000;">(*此项必填<i>eg:保湿植物面膜</i>)</span></td>
		</tr>
			<tr class="b" nowrap>
			<td> 推  荐 :</td>
			<td><input type="radio" name="suggest" value="1" /> 是 <input name="suggest" type="radio" value="0" checked="checked" /> 否 </td>
		</tr>
		<tr class="b" nowrap>
			<td>文章介绍:</td>
			<td><?php 
html_editor('content', $result['content']);
?>
</td>
		</tr>
		<tr class="b" nowrap>
			<td>上传图片:</td>
			<td><input type="file" name="uploadpic"><input type="text" name="pic" value="<?php 
echo $result['pic'];
?>
"></td>
		</tr>
	</table>
	<br><center><input type="submit" name="submit" value="提 交">&nbsp;&nbsp; <input type="reset" value="重置">&nbsp;&nbsp; </center>

</body>
</html>