============================================================================ ============================================================================ STEPS ============================================================================ ============================================================================ pcsite/lib/sys/classes/CSqo.class.php ----------------------------------------------------------------------------- Before: public static function getRowA( $result ) { return mysqli_fetch_array( $result ); } After: public static function getRowA( $result ) { return mysqli_fetch_array( $result, MYSQLI_ASSOC ); } ============================================================================ pcsite/admin/poll/crud/index.inc.php ----------------------------------------------------------------------------- // 2022-05-09 public function copy_init( $e ) { $poll_id=isset($_POST["_key:poll_id"])?intval($_POST["_key:poll_id"]):0; $_POST['copy']=$poll_id; $this->event( "reg1" ); } ----------------------------------------------------------------------------- public function reg_done( $e ) { // 2022-05-09 $poll_id=isset($_POST["copy"])?intval($_POST["copy"]):0; if($poll_id){ $this->copy_done($e,$poll_id); return; } ----------------------------------------------------------------------------- // 2022-05-09 public function copy_done( $e, $poll_id ) { ----------------------------------------------------------------------------- // 2022-05-09 public function copy_menu( $menu, $new_poll_id ) { ----------------------------------------------------------------------------- // 2022-05-09 public function copy_page( $page_id, $new_poll_id ) { ----------------------------------------------------------------------------- // 2022-05-09 public function copy_article( $article_id, $new_poll_id, $new_page_id ) { ============================================================================ pcsite/admin/poll/crud/tpls/tpl.reg1.class.php ----------------------------------------------------------------------------- // 2022-05-09 $poll_id=isset($_POST["copy"])?intval($_POST["copy"]):0; $title=$poll_id?"Copy Contest":"Create Contest"; // 2022-05-09 //$this->setBreadcrumbs( array( // "Create Contest", //) ); $this->setBreadcrumbs( array( $title, ) ); -----------------------------------------------------------------------------
To copy the contest, enter a title for the new contest in Title and click Copy.
To create a new contest, enter a title for the new contest in Title, select a time zone in Time Zone, and click Create.
----------------------------------------------------------------------------- ";} ?> outputInputbox(array( "name"=>"time_zone", "max-width"=>600, )); ?> ";} ?> ----------------------------------------------------------------------------- before style='min-width:200px;'>Create after style='min-width:200px;'> ============================================================================ pcsite/admin/poll/crud/tpls/tpl.search.class.php ----------------------------------------------------------------------------- jumpBtn( $pkv, 'poll/crud/copy_init', '', "Copy This Contest" ); ?> ============================================================================