CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
listpage_dppopup.php51 linesDownload Raw Back to classes
1<?php2 3class ListPage_DPPopup extends ListPage_DPInline4{	5 6	7	/**8	 * Show the page.9	 * It's supposed to be displayed in response on an ajax-like request10	 */11	public function showPage()12	{				13		$returnJSON = array();14 15		$this->xt->assign("view_column", false);16		$this->xt->assign("edit_column", false);17		$this->xt->assign("inlineedit_column", false);18		$this->xt->assign("inlinesave_column", false);19		$this->xt->assign("inlinecancel_column", false);20		$this->xt->assign("copy_column", false);21		$this->xt->assign("checkbox_column", false);22		$this->xt->assign("dtable_column", false);23		24		$this->xt->prepare_template($this->templatefile);25 26	27		$returnJSON["success"] = true;28		$returnJSON["counter"] = postvalue("counter");29		$detFoundMessage = "Details found";30		$returnJSON["body"] = "<span>" . $detFoundMessage . ": <strong>" . $this->numRowsFromSQL . "</strong></span>" .$this->xt->fetch_loaded("grid_block");31		32		echo printJSON($returnJSON);33		exit;34	}35	36	protected function assignSessionPrefix() 37	{38		$this->sessionPrefix = $this->tName."_preview";	39	}40 41	function assignColumnHeaders() 42	{43		//	show headers44		foreach( $this->listFields as $f) 45		{46			$this->xt->assign( GoodFieldname( $f['fName'] ) . "_fieldheader", true );			47		}48	}49	50}51?>