Example #1
0
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<base href="<?php echo AT_BASE_HREF; ?>" />
	<script src="<?php echo $_base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
	<script src="<?php echo $_base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>

</head>

<body <?php echo $onload; ?> >

<script type="text/javascript"><!--
function init() {
	tinyMCE.activeEditor.setContent(window.opener.document.getElementById("<?php echo $area; ?>"). value);
}
//--></script>

<?php load_editor(); ?>


<div align="right"><br /><a href="javascript:window.close()"><?php echo _AT('close_window'); ?></a></div>
<form name="form">
	<table cellspacing="1" cellpadding="0" width="99%" border="0" class="bodyline" align="center" summary="">
		<tr>
			<th class="cyan"><?php echo $title; ?></th>
		</tr>
		<tr>
			<td colspan="2" valign="top" align="left" class="row1">
				<table cellspacing="0" cellpadding="0" width="98%" border="0" summary="">
				<tr>
					<td class="row1" align="left">	
						<textarea name="body_text" id="body_text" rows="15" class="formfield" style="width: 99%;"></textarea>
					</td>
Example #2
0
<body <?php 
echo $onload;
?>
 >

<script type="text/javascript"><!--
function init() {
	tinyMCE.activeEditor.setContent(window.opener.document.getElementById("<?php 
echo $area;
?>
").value);
}
//--></script>

<?php 
load_editor();
?>


<div align="right"><br /><a href="javascript:window.close()"><?php 
echo _AT('close_window');
?>
</a></div>
<form name="form">
	<table cellspacing="1" cellpadding="0" width="99%" border="0" class="bodyline" align="center" summary="">
		<tr>
			<th class="cyan"><?php 
echo $title;
?>
</th>
		</tr>
Example #3
0
<?php

$simple = true;
if ($_POST['complexeditor'] == '1') {
    $simple = false;
}
load_editor($simple, false, "none");
?>

<div class="input-form">
	<form action="" method="post" name="form">
		<div class="row">
			<label for="jb_title"><?php 
echo _AT('jb_title');
?>
</label>
			<input type="text" id="jb_title" name="title" value="<?php 
echo htmlentities_utf8($this->job_post['title']);
?>
" />
		</div>		
		<div class="row">
			<label><?php 
echo _AT('categories');
?>
</label><br/>
			<?php 
if (!empty($this->categories)) {
    ?>
			<?php 
    foreach ($this->categories as $category) {
Example #4
0
                        fclose($fp);
                    }
                }
            }
            $msg->addFeedback('FILE_EDITED_SUCCESSFULLY');
            header('Location: ' . url_rewrite('mods/_standard/file_storage/index.php' . $owner_arg_prefix . 'folder=' . $folder, AT_PRETTY_URL_IS_HEADER));
            exit;
        }
        $_GET['id'] = $_POST['id'];
    }
}
$onload = 'document.form.name.focus();';
require AT_INCLUDE_PATH . 'header.inc.php';
if ($_POST['setvisual'] && !$_POST['settext'] || $_GET['setvisual']) {
    require AT_INCLUDE_PATH . 'lib/tinymce.inc.php';
    load_editor(false, 'body');
}
$id = abs($_REQUEST['id']);
$sql = "SELECT file_name, folder_id, description FROM %sfiles WHERE file_id=%d AND owner_type=%d AND owner_id=%d";
$row = queryDB($sql, array(TABLE_PREFIX, $id, $owner_type, $owner_id), TRUE);
if (count($row) == 0) {
    $msg->printErrors('FILE_NOT_EXIST');
    require AT_INCLUDE_PATH . 'footer.inc.php';
    exit;
}
if (isset($_POST['description'])) {
    $row['description'] = $stripslashes($_POST['description']);
    $row['file_name'] = $stripslashes($_POST['name']);
    $row['comment'] = $stripslashes($_POST['comment']);
    $_POST['body'] = $stripslashes($_POST['body']);
}
		$_REQUEST['setvisual'] = 0;

	} else if ($_SESSION['prefs']['PREF_CONTENT_EDITOR'] == 2) {
		$_POST['formatting'] = 1;
		$_POST['settext'] = 0;
		$_POST['setvisual'] = 1;

	} else { // else if == 0
		$_POST['formatting'] = 0;
		$_REQUEST['settext'] = 0;
		$_REQUEST['setvisual'] = 0;
	}
}

if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']) {
	load_editor(false, 'banner');
}

if (!isset($isadmin, $course, $db)) {
	return;	
}

if (isset($_POST['form_course'])) {

	$row['course_id']			= $_POST['course'];
	$row['title']				= $_POST['title'];
	$row['primary_language']	= $_POST['primary_language'];
	$row['member_id']			= $_POST['member_id'];
	$row['description']			= $_POST['description'];
	$row['course_dir_name']		= $_POST['course_dir_name'];
	$row['cat_id']				= $_POST['cat_id'];
Example #6
0
} else {
    $actionurl = "action/ac_add.php";
    $hasaccess = 1;
}
$type = 'index';
if (isset($_GET['type'])) {
    $type = $_GET['type'];
}
//本页配置信息
$pagename = "首页调用";
$actionmd5 = md5("index_add");
$message = "游客身份不能操作";
//游客提示语
$addname = '';
$backurl = "index_list";
load_editor("#kq_content");
?>

<div id="urHere"> 管理中心<b>&gt;</b><strong><?php 
echo $pagename;
?>
添加</strong> </div>
<?php 
if (!$hasaccess) {
    ?>
<div class="gonggao">
  <h3>温馨提示:</h3>
  <p><?php 
    echo $message;
    ?>
</p>
Example #7
0
            if (in_array($ext, $editable_file_types)) {
                $_POST['body_text'] = file_get_contents($current_path . $pathext . $file);
            } else {
                //error: bad file type
                $msg->addError('BAD_FILE_TYPE');
                header('Location: index.php?pathext=' . $pathext . SEP . 'framed=' . $framed . SEP . 'popup=' . $popup . SEP . '_course_id=' . $_course_id);
                exit;
            }
        }
    }
}
$onload = "on_load();";
require TR_INCLUDE_PATH . 'header.inc.php';
require TR_INCLUDE_PATH . 'lib/tinymce.inc.php';
// load tinymce library
load_editor(true, false, "none");
if (!isset($_POST['extension'])) {
    if ($ext == 'html' || $ext == 'htm') {
        $_POST['extension'] = 'html';
    } else {
        $_POST['extension'] = 'txt';
    }
}
?>

<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post" name="form">
<input type="hidden" name="pathext" value="<?php 
echo AT_print($pathext, 'input.hidden');
Example #8
0
        $_REQUEST['setvisual'] = 0;
    } else {
        if ($_SESSION['prefs']['PREF_CONTENT_EDITOR'] == 2) {
            $_POST['formatting'] = 1;
            $_POST['settext'] = 0;
            $_POST['setvisual'] = 1;
        } else {
            // else if == 0
            $_POST['formatting'] = 0;
            $_REQUEST['settext'] = 0;
            $_REQUEST['setvisual'] = 0;
        }
    }
}
// load tinymce library
load_editor(false, false, "none");
$pathext = $_GET['pathext'];
$popup = $_GET['popup'];
$msg->printAll();
if (!$_POST['extension']) {
    $_POST['extension'] = 'txt';
    $_POST['formatting'] = 0;
} else {
    if ($_POST['extension'] == "html") {
        $_POST['formatting'] = 1;
    }
}
?>
	<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
Example #9
0
        $_REQUEST['setvisual'] = 0;
    } else {
        if ($_SESSION['prefs']['PREF_CONTENT_EDITOR'] == 2) {
            $_POST['formatting'] = 1;
            $_POST['settext'] = 0;
            $_POST['setvisual'] = 1;
        } else {
            // else if == 0
            $_POST['formatting'] = 0;
            $_REQUEST['settext'] = 0;
            $_REQUEST['setvisual'] = 0;
        }
    }
}
if ($_POST['setvisual'] && !$_POST['settext'] || $_GET['setvisual']) {
    load_editor(false, 'body_text');
}
?>

<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post" name="form">
<input type="hidden" name="pathext" value="<?php 
echo $pathext;
?>
" />
<input type="hidden" name="framed"  value="<?php 
echo $framed;
?>
" />