コード例 #1
0
ファイル: userForm.php プロジェクト: gkathir15/catmis
function printEditUserSection($index)
{
    global $site;
    for ($i = 0; $i < sizeof($site->editUserSections); $i++) {
        $section = $site->editUserSections[$i];
        if (!empty($section["index"])) {
            if ($section["index"] == $index) {
                printSubsectionHeader($section["title"], "", 1, 1, $section["title"]);
                echo $section["description"] . '<br /><br />';
                echo '<div id="' . $section["title"] . '" class="formIndent">';
                echo $section["fields"];
                echo '</div>';
            }
        }
    }
}
コード例 #2
0
ファイル: index.php プロジェクト: gkathir15/catmis
echo "<p>" . $lBlogIndex["HeaderText"] . ($blog->hasEditPermission() ? " " . $lBlogIndex["NewBlog"] . "</p>" : "");
// Fetch blogs the user can administer
$result = $dbi->query("SELECT category FROM " . blogTableName . " GROUP BY category");
// Print categories
if ($result->rows()) {
    for ($i = 0; list($category) = $result->fetchrow_array(); $i++) {
        $result2 = $dbi->query("SELECT id FROM " . blogTableName . " WHERE (category=" . $dbi->quote($category) . ") ORDER BY position");
        // Print blogs in category
        if ($result2->rows()) {
            $headerPrinted = false;
            for ($j = 0; list($blogId) = $result2->fetchrow_array(); $j++) {
                $blogIndex = new Blog($blogId);
                if ($blogIndex->hasReadPermission()) {
                    if (!$headerPrinted) {
                        if (!empty($category)) {
                            printSubsectionHeader($category);
                        }
                        $headerPrinted = true;
                        echo "<table width=\"100%\">";
                    }
                    echo "<tr>";
                    echo "<td height=\"60\" valign=\"top\" width=\"50\">";
                    if (file_exists(scriptPath . "/" . folderUploadedFiles . "/blog_" . $blogIndex->id . ".jpg")) {
                        echo "<a href=\"" . $blogIndex->getBlogLink() . "\"><img src=\"" . scriptUrl . "/" . folderUploadedFiles . "/blog_" . $blogIndex->id . ".jpg\" height=\"50\" width=\"50\" border=\"0\" alt=\"" . $blogIndex->title . "\" title=\"" . $blogIndex->title . "\" class=\"border\" /></a>";
                    } else {
                        echo "<a href=\"" . $blogIndex->getBlogLink() . "\"><img src=\"" . iconUrl . "/picture5050.gif\" height=\"50\" width=\"50\" border=\"0\" alt=\"" . $blogIndex->title . "\" title=\"" . $blogIndex->title . "\" class=\"border\" /></a>";
                    }
                    echo "</td>";
                    echo "<td valign=\"top\" height=\"35\" width=\"100%\">";
                    echo "<a href=\"" . $blogIndex->getBlogLink() . "\"><b>" . (!empty($blogIndex->title) ? $blogIndex->title : "&nbsp;") . "</b> (" . $blogIndex->getNumberOfPosts() . ")</a><br />";
                    echo !empty($blogIndex->description) ? $blogIndex->description : $lBlogIndex["NoDescription"];
コード例 #3
0
ファイル: blogForm.php プロジェクト: gkathir15/catmis
</select></p>

<p><?php 
echo $lBlogEdit["Subscribers"];
?>
<br />
<textarea name="subscribers" rows="5" cols="40"><?php 
echo stripslashes($blog->subscribers);
?>
</textarea></p>
</div>


<?php 
if (!empty($blog->id)) {
    printSubsectionHeader($lBlogEdit["DeleteBlog"], "", 1, 0, "delete");
    ?>

<p><?php 
    echo $lBlogEdit["DeleteBlogText"];
    ?>
</p>

<div id="delete" class="formIndent" style="display:none">
<input type="checkbox" name="deleteBlog" value="1" onChange="if(this.checked==1) { saveBlog.value='<?php 
    echo $lBlogEdit["DeleteBlog"];
    ?>
' } else { saveBlog.value='<?php 
    echo $lBlogEdit["SaveBlog"];
    ?>
' }" <?php 
コード例 #4
0
ファイル: postForm.php プロジェクト: gkathir15/catmis
echo $post->showComments ? " checked=\"checked\"" : "";
?>
 onclick="if (this.checked) { disableComments.disabled=false } else { disableComments.disabled=true }" /> <?php 
echo $lBlogEditPost["ShowComments"];
?>
<br />
<input type="checkbox" name="disableComments" value="1"<?php 
echo $post->disableComments ? " checked=\"checked\"" : "";
?>
 /> <?php 
echo $lBlogEditPost["DisableComments"];
?>
</div>

<?php 
printSubsectionHeader($lBlogEditPost["DeletePost"], "", 1, 0, "delete");
?>

<p><?php 
echo $lBlogEditPost["DeletePostText"];
?>
</p>

<div id="delete" class="formIndent" style="display:none">
<input type="checkbox" name="deletePost" value="1" onChange="if(this.checked==1) { savePost.value='<?php 
echo $lBlogEditPost["DeletePost"];
?>
' } else { if (draft.checked==1) { savePost.value='<?php 
echo $lBlogEditPost["SaveAsDraft"];
?>
'; } else {savePost.value='<?php 
コード例 #5
0
ファイル: settingsForm.php プロジェクト: gkathir15/catmis
?>
 /> <?php 
echo $lSettings["RequireValidation"];
?>
<br />
<input type="checkbox" name="activateWithEmail" value="1"<?php 
echo $settings->activateWithEmail ? " checked=\"checked\"" : "";
?>
 /> <?php 
echo $lSettings["ActivateWithEmail"];
?>
</div>


<?php 
printSubsectionHeader($lSettings["Options"], "<img src=\"" . iconUrl . "/options.gif\" width=\"16\" height=\"16\" />", 1, 0, "settingsOptions");
?>

<p><?php 
echo $lSettings["OptionsText"];
?>
</p>

<div id="settingsOptions" class="formIndent" style="display:none">
<input type="checkbox" name="enableCaching" value="1" onclick="document.getElementById('cacheSizeSpan').style.display=this.checked==1?'':'none'"<?php 
echo $settings->enableCaching ? " checked=\"checked\"" : "";
?>
 /> <?php 
echo $lSettings["EnableCaching"];
?>
<span id="cacheSizeSpan"<?php 
コード例 #6
0
ファイル: index.php プロジェクト: gkathir15/catmis
}
// Get get values
$message = getGetValue("message");
// Add navigation link
$site->addNavigationLink(scriptUrl . "/" . folderAdmin, $lAdminIndex["Header"]);
// Print header
$site->printHeader();
// Print page text
if ($login->isAdmin()) {
    echo "<p>" . $lAdminIndex["HeaderText"] . "</p>";
    // Print message if any
    if (!empty($message)) {
        echo "<ul><li><b>" . $message . "</b></li></ul>";
    }
    // Print subsection header
    printSubsectionHeader($lAdminIndex["MyProfile"], "", 1, 1, "profile");
} else {
    echo "<p>" . $lAdminIndex["MyProfileText"] . "</p>";
    // Print message if any
    if (!empty($message)) {
        echo "<ul><li><b>" . $message . "</b></li></ul>";
    }
}
// Print items
echo "<div id=\"profile\">";
$site->printSectionItem($lAdminIndex["MyProfileEdit"], iconUrl . "/profile.jpg", scriptUrl . "/" . folderUsers . "/" . fileUserProfileEdit . "?userId=" . $login->id, 0, $lAdminIndex["MyProfileEditText"]);
$site->printSectionItem($lAdminIndex["ChangePassword"], iconUrl . "/password.jpg", scriptUrl . "/" . folderUsers . "/" . fileUserChangePassword . "?userId=" . $login->id, 0, $lAdminIndex["ChangePasswordText"]);
$site->printSectionItem($lAdminIndex["Logout"], iconUrl . "/logout.jpg", scriptUrl . "/" . fileLogout, 0, $lAdminIndex["LogoutText"]);
echo "</div>";
// Comments
$comment = new Comment();
コード例 #7
0
ファイル: pageForm.php プロジェクト: gkathir15/catmis
?>
</p>

<p><input type="checkbox" name="showLastModified" value="1" tabindex="8"<?php 
echo $pageObject->showLastModified ? " checked=\"checked\"" : "";
?>
 /> <?php 
echo $lEditPage["ShowLastModified"];
?>
</p>
</div>


<?php 
if (!empty($pageObject->id)) {
    printSubsectionHeader($lEditPage["Delete"], "", 1, 0, "delete");
    ?>

<p><?php 
    echo $lEditPage["DeleteText"];
    ?>
</p>

<div id="delete" class="formIndent" style="display:none">
<input type="checkbox" name="deletePage" value="1" tabindex="9" onchange="if(this.checked==1) { savePage.value='<?php 
    echo $lEditPage["Delete"];
    ?>
' } else { savePage.value='<?php 
    echo $lEditPage["Save"];
    ?>
' }" <?php 
コード例 #8
0
<a name="comments"></a><?php 
printSubsectionHeader($lComment["Header"] . " (" . $this->getNumberOfComments($moduleId, $moduleContentTypeId, $moduleContentId) . ")", !empty($rssLink) ? "<a href=\"" . $rssLink . "\"><img src=\"" . iconUrl . "/rss.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\" title=\"\" /></a>" : "", 1, 1, "comments");
?>
<p><?php 
printf($lComment["CommentTextLogged"], $replySubject);
?>
</p>

<div id="comments" class="formIndent">
コード例 #9
0
ファイル: commentForm.php プロジェクト: gkathir15/catmis
</div>

<a name="post"><?php 
printSubsectionHeader($lComment["WriteComment"], "", 1, 1, "post");
?>
</a>

<p><?php 
printf($lComment["PostText"], $replySubject);
?>
</p>

<div id="post" class="formIndent">
<?php 
if ($this->errors->hasErrors()) {
    $this->errors->printErrorMessages();
} else {
    $subject = $lComment["Reply"] . ": " . $replySubject;
}
?>

<form action="<?php 
echo $formURL;
echo !empty($_GET["page"]) ? "page=" . $_GET["page"] : "";
?>
&amp;addComment=1#comments" method="post">
<?php 
if (!$login->isLoggedIn()) {
    echo $lComment["Name"];
    ?>
<br />