本文整理汇总了PHP中base::show_message方法的典型用法代码示例。如果您正苦于以下问题:PHP base::show_message方法的具体用法?PHP base::show_message怎么用?PHP base::show_message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base
的用法示例。
在下文中一共展示了base::show_message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
if (isset($_GET['token'])) {
$token = $_GET['token'];
} else {
exit;
}
$base_instance->query('UPDATE ' . $base_instance->entity['FILE']['MAIN'] . ' SET token="",public=1 WHERE token="' . sql_safe($token) . '"');
$base_instance->show_message('File private again', '', 1);
示例2: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
$html_instance->add_parameter(array('ACTION' => 'show_content', 'ENTITY' => 'TO_DO', 'SUBENTITY' => 'CATEGORY', 'MAXHITS' => 40, 'WHERE' => "WHERE user='{$userid}'", 'ORDER_COL' => 'title', 'ORDER_TYPE' => 'ASC', 'HEADER' => 'To-Do Categories <a href="add-to-do-category.php">[Add Category]</a>', 'INNER_TABLE_WIDTH' => '80%'));
$data = $html_instance->get_items();
if (!$data) {
$base_instance->show_message('No to-do categories added yet', '<a href="add-to-do-category.php">[Add new Category]</a>');
} else {
$all_text = '<table width="100%" border cellspacing=0 cellpadding=5 class="pastel">';
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$title = $data[$index]->title;
#
$data2 = $base_instance->get_data("SELECT COUNT(*) AS total FROM {$base_instance->entity['TO_DO']['MAIN']} WHERE user='{$userid}' AND category={$ID}");
$number_to_do = $data2[1]->total;
#
$all_text .= '<tr onMouseOver=\'this.style.background="#e9e9e9"\' onMouseOut=\'this.style.background="#ffffff"\'>
<td width=140><a href="show-to-do.php?category_id=' . $ID . '"><strong>' . $title . '</strong></a></td>
<td align="left"><strong>Total:</strong> ' . $number_to_do . '</td>
<td align="center"><a href="add-to-do.php?category_id=' . $ID . '">[Add]</a></td>
<td align="center"><a href="show-to-do.php?category_id=' . $ID . '">[Show]</a></td>
<td align="center"><a href="show-to-do-print.php?category_id=' . $ID . '" target="_blank">[Print]</a></td>
<td align="center"><a href="search-to-do.php?category_id=' . $ID . '">[Search]</a></td>
<td align="center"><a href="edit-to-do-category.php?category_id=' . $ID . '">[Edit]</a></td>
<td align="center"><a href="merge-to-do-category.php?category_id=' . $ID . '">[Merge]</a></td>
<td align="center"><a href="javascript:void(window.open(\'delete-to-do-category.php?category_id=' . $ID . '\',\'\',\'width=450,height=200,top=100,left=100\'))">[Delete]</a></td>
</tr>';
示例3: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
$category_id = isset($_REQUEST['category_id']) ? (int) $_REQUEST['category_id'] : exit;
if (isset($_POST['save_it'])) {
$title_text_field = sql_safe($_POST['title_text_field']);
$base_instance->query("INSERT INTO {$base_instance->entity['DATABASE']['TEXT_FIELDS']} (user,title,category_id) VALUES ({$userid},'{$title_text_field}',{$category_id})");
$field_id = mysqli_insert_id($base_instance->db_link);
$base_instance->show_message('Field saved', '<a href="add-database-number-field.php?category_id=' . $category_id . '">[Add Number Field]</a> <a href="add-database-text-field.php?category_id=' . $category_id . '">[Add Text Field]</a><p>
<a href="add-database-select-field.php?category_id=' . $category_id . '">[Add Select Field]</a> <a href="add-database-checkbox-field.php?category_id=' . $category_id . '">[Add Checkbox Field]</a><p><a href="add-database-data.php?category_id=' . $category_id . '">[Add Data]</a> <a href="edit-database-text-field.php?text_field_id=' . $field_id . '">[Edit Field]</a> <a href="show-database-data.php?category_id=' . $category_id . '">[Show all Data]</a>');
}
$html_instance->add_parameter(array('ACTION' => 'show_form', 'HEADER' => 'Add Text Field', 'FORM_ACTION' => $_SERVER['PHP_SELF'], 'INNER_TABLE_WIDTH' => '400', 'TD_WIDTH' => '30%', 'BUTTON_TEXT' => 'Save Field'));
$html_instance->add_form_field(array('TYPE' => 'hidden', 'NAME' => 'save_it', 'VALUE' => 1));
$html_instance->add_form_field(array('TYPE' => 'hidden', 'NAME' => 'category_id', 'VALUE' => "{$category_id}"));
$html_instance->add_form_field(array('TYPE' => 'text', 'NAME' => 'title_text_field', 'VALUE' => '', 'SIZE' => 35, 'TEXT' => 'Name of Field'));
$html_instance->process();
示例4: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
if ($userid != _ADMIN_USERID && $base_instance->allow_file_upload == 2) {
$base_instance->show_message(_NO_FILE_UPLOAD_MSG, '');
}
$new_category = isset($_POST['new_category']) ? $_POST['new_category'] : '';
$category_id = isset($_REQUEST['category_id']) ? (int) $_REQUEST['category_id'] : '';
$public = isset($_POST['public']) ? (int) $_POST['public'] : 1;
if (isset($_POST['save'])) {
$error = '';
$title = $_POST['title'];
$text = $_POST['text'];
$source = $_POST['source'];
if (!$category_id && !$new_category) {
$error .= '<li> Category cannot be left blank';
}
if ($new_category) {
$duplicate = $base_instance->get_data('SELECT * FROM ' . $base_instance->entity['FILE']['CATEGORY'] . ' WHERE title="' . sql_safe($new_category) . '" AND user=' . $userid);
if ($duplicate) {
$error .= '<li> Category with this name already exists';
}
$new_category = str_replace('"', '"', $new_category);
if (strlen($new_category) > 50) {
$error .= '<li> Category title is too long (Max. 50 Characters)';
}
}
示例5: file
$filename = 'contacts' . $token . '.txt';
exec("rm {$filepath}; touch {$filepath}; chmod 0600 {$filepath}");
if (is_writable($filepath)) {
if (!($fp = fopen($filepath, 'w'))) {
echo "Cannot open file ({$filename})";
exit;
}
if (!fwrite($fp, $text)) {
echo "Cannot write to file ({$filename})";
exit;
}
fclose($fp);
} else {
echo "The file {$filename} is not writable";
exit;
}
#
if (file_exists($filepath)) {
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="' . $filename . '";');
#header('Content-Length: '.filesize($filepath));
set_time_limit(0);
@readfile($filepath) or die;
} else {
$base_instance->show_message('File not found');
}
示例6: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
$html_instance->add_parameter(array('ACTION' => 'show_content', 'ENTITY' => 'HOME', 'MAXHITS' => 40, 'WHERE' => "WHERE user='{$userid}'", 'ORDER_COL' => 'ID', 'ORDER_TYPE' => 'ASC', 'HEADER' => 'Homepage Overview', 'TEXT_CENTER' => '<a href="add-home.php">[Add new Homepage]</a><p>', 'INNER_TABLE_WIDTH' => '80%'));
$data = $html_instance->get_items();
if (!$data) {
$base_instance->show_message('No homepage added yet', '<a href="add-home.php">[Add new Homepage]</a>');
} else {
$all_text = '<table width="100%" border cellspacing=0 cellpadding=5 class="pastel">';
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$title = $data[$index]->title;
#
$all_text .= '<tr onMouseOver=\'this.style.background="#e9e9e9"\' onMouseOut=\'this.style.background="#ffffff"\'>
<td width=140><a href="home.php?home_id=' . $ID . '"><strong>' . $title . '</strong></a></td><td align="center"><a href="edit-home.php?home_id=' . $ID . '">[Edit]</a></td><td align="center"><a href="home.php?home_id=' . $ID . '">[Show]</a></td><td align="center"><a href="delete-home.php?home_id=' . $ID . '">[Delete]</a></td>
</tr>';
}
$all_text .= '</table>';
}
$content_array[1] = array('MAIN' => $all_text);
$html_instance->content = $content_array;
$html_instance->process();
示例7: VALUES
# insert number values
$data = $base_instance->get_data("SELECT * FROM {$base_instance->entity['DATABASE']['NUMBER_FIELDS']} WHERE user='{$userid}' AND category_id='{$category_id}'");
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$value = sql_safe($_POST['number' . $ID]);
$base_instance->query("INSERT INTO {$base_instance->entity['DATABASE']['NUMBER_VALUES']} (date,user,value,data_id,number_field_id,category_id) VALUES ('{$date}',{$userid},'{$value}',{$insert_id},{$ID},{$category_id})");
}
# insert text values
$data = $base_instance->get_data("SELECT * FROM {$base_instance->entity['DATABASE']['TEXT_FIELDS']} WHERE user='{$userid}' AND category_id='{$category_id}'");
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$value = sql_safe($_POST['text' . $ID]);
$base_instance->query("INSERT INTO {$base_instance->entity['DATABASE']['TEXT_VALUES']} (date,user,value,data_id,text_field_id,category_id) VALUES ('{$date}',{$userid},'{$value}',{$insert_id},{$ID},{$category_id})");
}
$base_instance->show_message('Data saved', '<script language="JavaScript" type="text/javascript">function createRequestObject(){try{var requester=new XMLHttpRequest();}catch(error){try{var requester=new ActiveXObject("Microsoft.XMLHTTP");}catch(error){return false;}} return requester;}var http=createRequestObject();function DelData(item){if(confirm("Delete Data?")){http.open(\'get\',\'delete-database-data.php?item=\'+item); http.send(null);}}</script>
<a href="add-database-data.php?category_id=' . $category_id . '">[Add more]</a> <a href="edit-database-data.php?data_id=' . $insert_id . '">[Edit]</a> <a href="javascript:DelData(\'' . $insert_id . '\')">[Delete]</a> <a href="show-database-data.php?category_id=' . $category_id . '">[Show all Data]</a><p>');
} else {
$html_instance->error_message = $error;
$title = stripslashes($title);
}
}
$day = date('j');
$month = date('n');
$year = date('Y');
$title = isset($_POST['title']) ? $_POST['title'] : '';
$html_instance->add_parameter(array('ACTION' => 'show_form', 'HEADER' => 'Add Data', 'FORM_ACTION' => $_SERVER['PHP_SELF'], 'BUTTON_TEXT' => 'Save Data'));
$html_instance->add_form_field(array('TYPE' => 'hidden', 'NAME' => 'save_data', 'VALUE' => "1"));
$html_instance->add_form_field(array('TYPE' => 'hidden', 'NAME' => 'category_id', 'VALUE' => "{$category_id}"));
$html_instance->add_form_field(array('TYPE' => 'text', 'NAME' => 'title', 'VALUE' => "{$title}", 'SIZE' => 50, 'TEXT' => 'Title'));
# get number fields
示例8: isset
} else {
$view_mode = isset($_COOKIE['vm_todo']) ? $_COOKIE['vm_todo'] : '';
}
#
if ($view_mode == 1) {
$link = '<a href="' . $_SERVER['PHP_SELF'] . '?' . $param . 'view_mode=0">[Complete View]</a>';
} else {
$link = '<a href="' . $_SERVER['PHP_SELF'] . '?' . $param . 'view_mode=1">[List View]</a>';
}
#
$html_instance->add_parameter(array('ACTION' => 'show_content', 'ENTITY' => 'TO_DO', 'ORDER_COL' => $order_col, 'ORDER_TYPE' => $order_type, 'MAXHITS' => 40, 'WHERE' => "WHERE user='{$userid}' {$query}", 'SORTBAR' => 2, 'SORTBAR_FIELD1' => 'datetime', 'SORTBAR_NAME1' => 'Date added', 'SORTBAR_FIELD2' => 'priority', 'SORTBAR_NAME2' => 'Priority', 'HEADER' => 'To-Do ' . $category_name . ' ' . $link . ' <a href="show-to-do-print.php?' . $param . '" target="_blank">[Print]</a> <a href="generate-rss-feed-to-do.php">[RSS Feed]</a> ', 'INNER_TABLE_WIDTH' => '80%', 'URL_PARAMETER' => $param, 'HEAD' => '<script language="JavaScript" type="text/javascript">function createRequestObject(){try {var requester=new XMLHttpRequest();}catch (error) {try{var requester=new ActiveXObject("Microsoft.XMLHTTP");}catch(error){return false;}}return requester;}var http=createRequestObject();function DelToDo(item){if(confirm("Delete To-Do?")){http.open(\'get\',\'delete-to-do.php?item=\'+item);http.onreadystatechange=handleResponse;http.send(null);}}function handleResponse(){if(http.readyState==4){var response=http.responseText;var update=new Array();if(response.indexOf(\'|\'!=-1)){res=response.split(\'|\');document.getElementById(res[0]).innerHTML=res[1];}}}</script>'));
$data = $html_instance->get_items();
if (!$data) {
if ($text_search) {
if ($text_search) {
$base_instance->show_message('Search Result', 'Nothing found for the entered search terms.<p><a href="javascript:history.go(-1)">[Go Back]</a>');
}
} else {
$base_instance->show_message('No to-do added yet', '<a href="add-to-do.php">[Add To-do]</a>');
}
} else {
$all_text = '';
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$title = $data[$index]->title;
$priority = $data[$index]->priority;
$status = $data[$index]->status;
$category_id = $data[$index]->category;
$datetime = $data[$index]->datetime;
if ($index % 2 == 1) {
$bg = '#fbfbfb';
示例9: base
require 'class.base.php';
require 'class.html.php';
require 'class.user.php';
$base_instance = new base();
$html_instance = new html();
$user_instance = new user();
$user_instance->check_for_admin();
$news_id = isset($_REQUEST['news_id']) ? (int) $_REQUEST['news_id'] : exit;
if (isset($_POST['save'])) {
$base_instance->query("DELETE FROM {$base_instance->entity['NEWS']['MAIN']} WHERE ID='{$news_id}'");
header('Location: close-me.php');
exit;
}
$data = $base_instance->get_data("SELECT * FROM {$base_instance->entity['NEWS']['MAIN']} WHERE ID='{$news_id}'");
if (!$data) {
$base_instance->show_message('News not found');
exit;
}
$datetime = $data[1]->datetime;
$text = $data[1]->text;
$title = $data[1]->title;
$text2 = substr($text, 0, 50);
$datetime_converted = $base_instance->convert_date($datetime . ' 00:00:00');
$html_instance->add_parameter(array('ACTION' => 'show_form', 'HEADER' => '<font color="#ff0000">Delete this News?</font>', 'FORM_ACTION' => $_SERVER['PHP_SELF'], 'BUTTON_TEXT' => 'Delete News'));
$html_instance->add_form_field(array('TYPE' => 'hidden', 'NAME' => 'news_id', 'VALUE' => "{$news_id}"));
if ($title) {
$text2 = "<b>{$title}</b>: {$text2}";
}
$html_instance->add_form_field(array('TYPE' => 'label', 'TEXT' => "<strong>Added:</strong> {$datetime_converted}<p>{$text2}"));
$html_instance->process();
示例10: ping_server
#
$result1 = ping_server('http://rpc.technorati.com/rpc/ping', 'rpc.technorati.com', $title, $url);
$result2 = ping_server('http://rpc.icerocket.com:10080', 'rpc.icerocket.com', $title, $url);
preg_match("/<string>([\\x{1}-\\x{99999}]+)<\\/string>/ui", $result1, $ll);
if (!empty($ll[1])) {
$string1 = $ll[1];
} else {
$string1 = '(Error)';
}
preg_match("/<string>([\\x{1}-\\x{99999}]+)<\\/string>/ui", $result2, $ll);
if (!empty($ll[1])) {
$string2 = $ll[1];
} else {
$string2 = '(Error)';
}
$base_instance->show_message('Server Pinged', '<u>Technorati Result:</u> ' . $string1 . '<p><u>Icerocket Result:</u> ' . $string2);
#
function ping_server($ping_server, $rpc, $title, $url)
{
$request = xmlrpc_encode_request('weblogUpdates.ping', array($title, $url));
$header[] = 'Host: ' . $rpc;
$header[] = 'Content-type: text/xml';
$header[] = 'Content-length: ' . strlen($request) . "\r\n";
$header[] = $request;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ping_server);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$result = curl_exec($ch);
curl_close($ch);
示例11: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
if ($userid != _ADMIN_USERID && $base_instance->allow_file_upload == 2) {
$base_instance->show_message(_NO_FILE_UPLOAD_MSG, '');
}
$text_search = isset($_REQUEST['text_search']) ? sql_safe($_REQUEST['text_search']) : '';
$whole_words = isset($_POST['whole_words']) ? 1 : '';
$category_id = isset($_REQUEST['category_id']) ? (int) $_REQUEST['category_id'] : '';
if ($text_search && $whole_words) {
$query = " AND (text REGEXP '([[:space:]]|[[:<:]]){$text_search}([[:>:]]|[[:space:]])' OR title REGEXP '([[:space:]]|[[:<:]]){$text_search}([[:>:]]|[[:space:]])' OR filename REGEXP '([[:space:]]|[[:<:]]){$text_search}([[:>:]]|[[:space:]])') ";
$param = 'text_search=' . $text_search . '&';
} else {
if ($text_search) {
$query = " AND (text LIKE '%{$text_search}%' OR title LIKE '%{$text_search}%' OR filename LIKE '%{$text_search}%') ";
$param = 'text_search=' . $text_search . '&';
} else {
$query = '';
$param = '';
}
}
if ($category_id) {
$query .= " AND (category={$category_id}) ";
$param = "category_id={$category_id}";
$data = $base_instance->get_data("SELECT title FROM {$base_instance->entity['FILE']['CATEGORY']} WHERE ID={$category_id}");
$title = $data[1]->title;
$category_name = '(Category ' . $title . ')';
示例12: setcookie
$order_col = $_GET['order_col'];
setcookie('oc_todo', $_GET['order_col'], time() + 2592000);
} else {
$order_col = isset($_COOKIE['oc_todo']) ? $_COOKIE['oc_todo'] : 'datetime';
}
#
if (isset($_GET['order_type'])) {
$order_type = $_GET['order_type'];
setcookie('ot_todo', $_GET['order_type'], time() + 2592000);
} else {
$order_type = isset($_COOKIE['ot_todo']) ? $_COOKIE['ot_todo'] : 'DESC';
}
$html_instance->add_parameter(array('ACTION' => 'show_content', 'ENTITY' => 'TO_DO', 'ORDER_COL' => $order_col, 'ORDER_TYPE' => $order_type, 'MAXHITS' => 40, 'WHERE' => "WHERE public='2'", 'SORTBAR' => 2, 'SORTBAR_FIELD1' => 'datetime', 'SORTBAR_NAME1' => 'Date added', 'SORTBAR_FIELD2' => 'priority', 'SORTBAR_NAME2' => 'Priority', 'HEADER' => 'Public To-Do', 'INNER_TABLE_WIDTH' => '80%'));
$data = $html_instance->get_items();
if (!$data) {
$base_instance->show_message('No public to-do added yet');
} else {
$all_text = '';
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$title = $data[$index]->title;
$text = $data[$index]->text;
$priority = $data[$index]->priority;
$category_id = $data[$index]->category;
$datetime = $data[$index]->datetime;
$user_id = $data[$index]->user;
$datetime_converted = $base_instance->convert_date($datetime);
$text = convert_square_bracket($text);
$text = $base_instance->insert_links($text);
$text = nl2br($text);
if (!empty($title)) {
示例13: header
$userid = $data[1]->user;
$url = './upload/' . $userid . '/' . $filename;
if (file_exists($url)) {
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="' . $filename . '";');
#header('Content-Length: '.filesize($url));
set_time_limit(0);
@readfile($url) or die;
} else {
header('HTTP/1.1 404 Not Found');
$base_instance->show_message('File not found');
}
}
if ($token) {
$data = $base_instance->get_data("SELECT * FROM {$base_instance->entity['FILE']['MAIN']} WHERE token='{$token}'");
if (!$data) {
header('HTTP/1.1 404 Not Found');
$base_instance->show_message('File not found', '<font face="Verdana" size="1" color="#636363">Powered by <a href="http://www.bookmark-manager.com/" target="_blank"><font color="#191970">Blue Smiley Organizer</font></a></font>');
}
$file_id = $data[1]->ID;
$filename = $data[1]->filename;
$title = $data[1]->title;
$text = $data[1]->text;
$userid = $data[1]->user;
$filesize = filesize('./upload/' . $userid . '/' . $filename);
if ($filesize > 1048576) {
示例14: base
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance = new base();
$html_instance = new html();
$userid = $base_instance->get_userid();
$html_instance->add_parameter(array('ACTION' => 'show_content', 'ENTITY' => 'RSS', 'ORDER_COL' => 'title', 'ORDER_TYPE' => 'ASC', 'MAXHITS' => 40, 'WHERE' => "WHERE user='{$userid}'", 'HEADER' => 'RSS Feeds', 'TEXT_CENTER' => '<a href="add-rss-feeds.php">[Add RSS Feeds]</a><p>', 'INNER_TABLE_WIDTH' => '80%'));
$data = $html_instance->get_items();
if (!$data) {
$base_instance->show_message('No RSS Feeds added yet', '<a href="add-rss-feeds.php">[Add RSS Feeds]</a>');
} else {
$all_text = '<table width="100%" border cellspacing=0 cellpadding=5 class="pastel">';
}
for ($index = 1; $index <= sizeof($data); $index++) {
$ID = $data[$index]->ID;
$title = $data[$index]->title;
$feed = $data[$index]->feed;
$all_text .= '<tr onMouseOver=\'this.style.background="#e9e9e9"\' onMouseOut=\'this.style.background="#ffffff"\'><td><strong>' . $title . '</strong></td><td>' . $feed . '</td><td><a href="' . $feed . '" target="_blank">[Show]</a></td><td><a href="edit-rss-feed.php?feed_id=' . $ID . '">[Edit]</a></td><td><a href="javascript:void(window.open(\'delete-rss-feed.php?feed_id=' . $ID . '\',\'\',\'width=450,height=200,top=100,left=100\'))">[Delete]</a></td></tr>';
}
$all_text .= '</table>';
$content_array[1] = array('MAIN' => $all_text);
$html_instance->content = $content_array;
$html_instance->process();
示例15: back
# translate bluebox ORDER_COL
$data = $html_instance->get_items();
if ($order_col == 'ttv') {
$html_instance->para['ORDER_COL'] = 'ttv';
}
# translate back (workaround to show red arrow down and up)
if ($order_col == 'bluebox') {
$html_instance->para['ORDER_COL'] = 'bluebox';
}
# translate back (workaround to show red arrow down and up)
if (!$data) {
if ($text_search) {
$html_instance->add_parameter(array('HEADER' => 'Nothing found (Links)', 'TEXT' => '<form action="show-links.php" method="post"><center><table cellpadding=10 cellspacing=0 border=0 bgcolor="#ffffff" class="pastel2"><tr><td align="right"><b>Text:</b> <input type="text" name="text_search" size="30" value="' . $text_search . '"></td></tr><tr><td align="center"><input type="SUBMIT" value="Search Links" name="save"></td></tr></table></center></form>'));
$html_instance->process();
} else {
$base_instance->show_message('No links added yet', '<a href="add-link.php">[Add Link]</a> or <a href="import-bookmarks-start.php">[Upload your Bookmarks]</a>');
}
} else {
if (isset($_GET['page'])) {
$page = (int) $_GET['page'];
} else {
$page = 1;
}
$all_text = '<table width="100%" border=0 cellspacing=0 cellpadding=2 class="pastel"><tr><td align="center"><a href="' . $_SERVER['PHP_SELF'] . '?' . $param . '&page=' . $page . '&order_col=' . $order_col . '&order_type=' . $order_type . '">[Refresh]</a></td><td align="center"><table class="no_border"><tr><td><strong>Search:</strong> </td><td><form method="post" action="url-search.php" target="_blank"><input type="Text" name="text_search" size=10><input type=submit value="Go!"></form></td></tr></table></td><td colspan="6" align="center"><b>Actions</b></td>';
if ($order_col == 'frequency') {
$all_text .= '<td align="center"><u><b>Visit every</b></u></td>';
} else {
$all_text .= '<td align="center"><b>Visit every</b></td>';
}
if ($order_col == 'speed') {
$all_text .= '<td align="center"><u><b>Ascent Speed</b></u></td>';