<?php

include_once INCLUDES . "formatting.php";
include_once INCLUDES . "timezones.php";
include_once INCLUDES . "comments.php";
$GLOBALS["yg_is_asset"] = true;
$_GET["offset"] = $_asset_in["offset"];
$_commentsPerPage = $_asset_in["limit"];
$saveCmd = $_cmd;
$_cmd[0] = $_asset_in["cmd_0"];
$_cmd[1] = $_asset_in["cmd_1"];
$_cmd[2] = $_asset_in["cmd_2"];
$_currentPageURL = url($_cmd[0] . "/" . $_cmd[1] . "/" . $_cmd[2], array("replied" => "yes"));
ob_start();
showAllComments($_asset_in["objid"], $_asset_in["objType"], false, $_asset_in["allowReply"], $_asset_in["showChilds"], $_asset_in["oldestFirst"], $_asset_in["useCache"]);
$_asset_out["html"] = ob_get_contents();
ob_end_clean();
$_cmd = $saveCmd;
Exemple #2
0
        echo url("members/" . $cluid);
        ?>
">
						<?php 
        echo _MORE;
        ?>
						<?php 
        echo getIMG(url() . "images/emoticons/nav-next.png");
        ?>
						</a>
					</div>
					<?php 
    }
    ?>
			</div>
		</div>
		<?php 
}
?>
</div>

<div class="rightside" style="margin-top: -1px">
	<?php 
include_once INCLUDES . "comments.php";
showAllComments($cluid, "clu", false, true, true, false);
?>
</div>
<div class="clear">&nbsp;</div>

</div>
                            <form method='post' action='viewThread.php?view={$convo_id}'>
                            <input type="hidden" maxlength='20' name='gethighrate' value='{$title}'>
                            <input type="submit" name='highrate' value='High Rate'>
                            </form>
                            <form method='post' action='viewThread.php?view={$convo_id}'>
                            <input type="hidden" maxlength='20' name='lowrate' value='{$title}'>
                            <input type="submit" name='lowrate' value='Low Rate'>
                            </form>
                        </ul>
                </div>
        </div>
    </div>
        <div class="homeThread">
_E;
if ($forComments == 0) {
    showAllComments($title, $convo_id);
} elseif ($forComments == 1) {
    showHigherRatedComments($title, $convo_id);
} elseif ($forComments == 2) {
    showLeastRatedComments($title, $convo_id);
}
echo <<<_E
        </div>
            <div class="firstDetails">
                Comment Here!
                <form name ='mycomment' id='forForm' method='post' action='viewThread.php?view={$convo_id}'>
                <textarea type="text" name="message" cols='79' rows='5'></textarea><br>
                <input type='hidden' name='threadTitle' value='{$title}'>
                <button id="sub">Add!</button><br/>  
                </form>
            </div>
Exemple #4
0
                <p id="commentMsg"></p>
                <!-- CKEDITOR REQUIREMENT -->
                <script type="text/javascript">
                    var editor2 = CKEDITOR.replace( 'alterComment' );
                </script>
                <!-- CKEDITOR REQUIREMENT -->
            </div>

            <div class="text-center form-group">
                <button type="submit" class="btn btn-primary" name="edit">Submit Changes</button>
                <button type="submit" class="btn btn-primary" name="cancel">Cancel</button>
            </div>
        </form>
        <?php 
} else {
    showAllComments();
}
?>

</body>
</html>


<?php 
/**
 *  Used to display all comments in the database.  This function is only to tidy up
 *  the source code.
 *
 */
function showAllComments()
{
Exemple #5
0
    ?>
,
								cmd_0: "<?php 
    echo $_cmd[0];
    ?>
",
								cmd_1: "<?php 
    echo $_cmd[1];
    ?>
",
								cmd_2: "<?php 
    echo $_cmd[2];
    ?>
"
							});
					}
				};

			//]]>
			</script>
			<?php 
} else {
    include_once INCLUDES . "comments.php";
    showAllComments($objid, $isExtras ? "ext" : "obj", false, true, true, false, true);
}
?>
	</td>
	</tr>
	</table>
</div>
    iefixEnd();
    $found = true;
}
if (!$found) {
    echo _ANNOUNCEMENT_NONE_FOUND;
}
?>
		</div>
		<div class="clear">&nbsp;</div>
	</div>

	<?php 
if ($journalAction == "") {
    ?>
		<div class="rightside" style="margin-top: -1px">
		<?php 
    if (isset($currentEntry)) {
        unset($commentRows);
        unset($commentWide);
        unset($commentName);
        include_once INCLUDES . "comments.php";
        showAllComments($currentEntry["jouid"], "jou", false, true, true, false);
    }
    ?>
		</div>
		<?php 
}
?>
	<div class="clear">&nbsp;</div>
</div>
Exemple #7
0
             if ($visitor == $user) {
                 if (count($_GET) != 0) {
                     $galOne->deleteGalary($deleteGalary_get, $user);
                     //die("Удалено!");
                 } else {
                     $urlStr = $urlArr[0] . $urlArr[1] . "/" . $urlArr[2] . "/";
                     header("Location: /");
                 }
             } else {
                 $urlStr = $urlArr[0] . $urlArr[1] . "/" . $urlArr[2] . "/";
                 header("Location: {$urlStr}");
             }
             break;
         case "comments":
             // quki.ru/galary/13/comments
             $output = showAllComments("galary", $visitor, $user, $showAllComments_get);
             break;
         case "edit":
             //раздел для редактирования альбома.   quki.ru/galary/13/edit
             $output = "";
             break;
         default:
             $temp = $galOne->showGalary($visitor, $altname, $listNum, $user);
             $output = makeGalaryFiles($temp, $link, $urlArr);
             break;
     }
     break;
 case 3:
     // quki.ru/galary/13/1/comments
     if ($elementID != "comments" && $elementID != "edit") {
         $temp = $galOne->showPhoto($user, $visitor, $altname, $elementID);
Exemple #8
0
    iefixEnd();
    $found = true;
}
if (!$found) {
    echo _POLL_NONE_FOUND;
}
?>
		</div>
		<div class="clear">&nbsp;</div>
	</div>

	<?php 
if ($pollAction == "") {
    ?>
		<div class="rightside" style="margin-top: -1px">
		<?php 
    if (isset($currentEntry)) {
        unset($commentRows);
        unset($commentWide);
        unset($commentName);
        include_once INCLUDES . "comments.php";
        showAllComments($currentEntry["polid"], "pol", false, true, true, false);
    }
    ?>
		</div>
		<?php 
}
?>
	<div class="clear">&nbsp;</div>
</div>
Exemple #9
0
		</div>
		<?php 
if (atLeastModerator()) {
    ?>
		<div class="sep a_center largetext" style="width: 100%; border: none; background: #aaa; color: #000; cursor: pointer;"
			onclick="document.location='<?php 
    echo url("moderate/" . $useUsername);
    ?>
'"><?php 
    echo _MODERATION;
    ?>
</div>
		<?php 
}
?>
		<?php 
echo iefixEnd();
?>
	</div>
</div>

<div class="rightside" style="margin-top: -1px">
	<?php 
include_once INCLUDES . "comments.php";
showAllComments($useData["useid"], "use", false, true, true, false, true);
?>
</div>
<div class="clear">&nbsp;</div>

</div>
Exemple #10
0
    showComment($comData, 0);
    ?>
<br />
		<div style="float:right;">
		<?php 
    if (atLeastSModerator()) {
        ?>
			<form action="<?php 
        echo url('news/edit/' . $newid);
        ?>
" method="POST">
				<button class="submit">Edit</button>
			</form>
		<?php 
    }
    ?>
		</div>
		<div style="clear:both;"></div>
	</div>
</div>

<div class="rightside" style="margin-top: -1px">
	<?php 
    showAllComments($newid, "new", false, true, true, false);
    ?>
</div>
<div class="clear">&nbsp;</div>

</div>
<?php 
}
Exemple #11
0
        <link href="newcss.css" rel="stylesheet">
    </head>

    <body>
        <div class="container">
            <div class="jumbotron">
            </div>
            <div class="tables">



                <div>
                    
                    <?php 
echo $foundhotel;
echo showAllComments($mysqli);
echo comment_form($post_id);
echo $room_form;
echo $booking_form;
echo $delete_room_form;
echo $booking_form_admin;
?>
                    
                    <form action="?action=unsetUsername" method="post">
                        <input type="submit" class="btn btn-primary" value="Logout <?php 
echo $username;
?>
">
                    </form>
                    <a href="admin_home.php?action=displayHotels"
                </div>
Exemple #12
0
<div class="header">
	<div class="header_title">
		<?php 
echo _COMMENT;
?>
		<div class="subheader"><?php 
printf(_BY, $useData["useUsername"]);
?>
</div>
		<div class="clear">&nbsp;</div>
	</div>
</div>

<div class="container">
<div align="center"><table class="a_left"><tr><td class="notsowide">
<?php 
include_once INCLUDES . "comments.php";
showComment($comData, 0, true);
if (!isset($_GET["replied"])) {
    echo '<div class="sep header">' . _LEAVE_COMMENT_REPLY . '</div>';
} else {
    echo '<div class="sep" style="margin-left: 16px">';
}
showAllComments($comid, "com", false);
if (isset($_GET["replied"])) {
    echo '</div>';
}
?>
</td></tr></table></div>
</div>