Beispiel #1
0
	<?php
	$this->table->set_template($cp_table_template);
	$this->table->set_heading(
		lang("quote_id"),
		lang("submitted_by"),
		lang("created"),
		lang("updated"),
		lang("preview"),
		lang("status"),
		form_checkbox("select_all", "true", FALSE, 'id="select_all" class="toggle_all"')
	);

	if (isset($quotes) && !empty($quotes)) {
		foreach ($quotes as $quote) {
			$this->table->add_row(
				'<a href="'.Qdb_mcp::cp_link_to("edit_quote", array("id" => $quote["quote_id"])).'">'.$quote["quote_id"].'</a>',
				'<a href="'.BASE.AMP.'C=myaccount'.AMP.'id='.$quote["member_id"].'">'.$quote["screen_name"].'</a>',
				$quote["created_at"],
				$quote["updated_at"],
				nl2br(htmlspecialchars($quote["body"])),
				'<span class="status '.$quote["status"].'">'.lang($quote["status"]).'</span>',
				form_checkbox($quote["toggle"])
			);
		}
	} else {
		$this->table->add_row(array(
			"data" => ($filters_active ? lang("no_quotes_match_filters") : lang("no_quotes_in_database")),
			"colspan" => 7,
			"style" => "text-align:center;"
		));
	}
Beispiel #2
0
	static function cp_link_to($method, $query = array()) {
		return BASE.AMP.Qdb_mcp::cp_path_to($method, $query);
	}