本文整理汇总了PHP中XoopsLists::getimgListAsArray方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsLists::getimgListAsArray方法的具体用法?PHP XoopsLists::getimgListAsArray怎么用?PHP XoopsLists::getimgListAsArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsLists
的用法示例。
在下文中一共展示了XoopsLists::getimgListAsArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editform
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
//.........这里部分代码省略.........