'on',
'auth' => '',
'table_mod' => '',
// 'copy' => '',
);
$auth_chk = auth::check_auth();
foreach($edit_auth_pages as $key=>$val){
if (preg_match($key, $page) && $edit_auth){
$opt['edit'] = 'off';
if(! empty($auth_chk)){
$opt['edit'] = 'on';
}
}
}
// if(is_editable($page)){ }
$head_button = '';
$body = '';
$body_table = '';
$args = func_get_args();
$arg = array_pop($args);
foreach ($args as $opt_key) {
list($key, $val) = explode('=', strtolower($opt_key));
$opt[$key] = htmlspecialchars($val);
}
// if (PKWK_READONLY) {
if (auth::check_role('readonly') || is_freeze($page) ) {
$opt['edit'] = 'off';
}
// open or close
if ($opt['table_mod'] != 'off' && $opt['edit'] != 'off'){
if ($opt['table_mod'] == 'open' || $opt['table_mod'] == ''){
$image_png = 'close.png" width="11" height="11" alt="" title="close"';
$table_mod = 'close';
} else if ($opt['table_mod'] == 'close'){
$image_png = 'paraedit.png" width="9" height="9" alt="" title="open"';
$opt['edit'] = 'off';
$table_mod = 'open';
}
$head_button = '
'',
'table_num' => '',
'line_count' => '',
);
$args = func_get_args();
foreach ($args as $opt_key) {
list($key, $val) = explode('=', strtolower($opt_key));
$opt[$key] = htmlspecialchars($val);
}
if ($opt['edit_mod'] == 'show' || $opt['edit_mod'] == 'tdshow'){
$image_png = 'paraedit.png" width="9" height="9" alt="" title="edit"';
} else if ($opt['edit_mod'] == 'tr' || $opt['edit_mod'] == 'td'){
$image_png = 'mini_add.png" width="8" height="8" alt="" title="addition"';
}
$body .= '$title, 'body'=>$body);
}
header('Location: ' . $script . '?' . rawurlencode($page) . '#' . "table_edit2_table_number$table_num"); //1.0 06.09.21
exit;
}
//table edit form
function table_edit_form($page, $_edit_mod, $table_num, $edit_count, $edit_cell, $table_sub_num)
{
if ($_edit_mod == 'show'){
$line_name = ' line';
$edit_mod = 't_edit';
$x_count = 'line_count';
$y_count = 'cell_count';
} else if ($_edit_mod == 'tdshow'){
$line_name = " (sub number=" . $table_sub_num . ") column line";
$edit_mod = 't_edit_td';
$x_count = 'cell_count';
$y_count = 'line_count';
}
$body = '' . 'table=' . $table_num . $line_name . '=' . $edit_count . '
';
$body .= '
EOD;
return $body;
}
?>