Beispiel #1
0
		public function _update() {
			$r= new JTWebContent($_SESSION['login_user_id']);
			$r->select('index.slogan');
			$r->setFields($_POST);
			$r->update();
			$this->addAlert(new JAlert('更新完成','告知訊息',"./?action=edit"));
			$this->action('edit');
		}
Beispiel #2
0
		public function _update() {
			$r= new JTWebContent($_SESSION['login_user_id']);
			$r->select('about.choose');
			$r->data['content'] = $_POST['content']['choose'];
			$r->update();
			$r->select('about.managed');
			$r->data['content'] = $_POST['content']['managed'];
			$r->update();
			$r->select('about.fund');
			$r->data['content'] = $_POST['content']['fund'];
			$r->update();
			$r->select('about.advisory');
			$r->data['content'] = $_POST['content']['advisory'];
			$r->update();
			$r->select('about.preservation');
			$r->data['content'] = $_POST['content']['preservation'];
			$r->update();
			$this->addAlert(new JAlert('更新完成','告知訊息',"./?action=edit"));
			$this->action('edit');
		}