english/administrator/components/com_aicontactsafe/models/messages.php
// function to change the status of the selected messages
function to change the status of the selected messages
function to change the status of the selected messages
function changeStatus() {
		$cid = JRequest::getVar( 'cid', array(), 'post', 'array' );
		JArrayHelper::toInteger($cid);
		$new_status = JRequest::getVar( 'new_status', 0, 'post', 'int' );
		if ($new_status > 0 && is_array($cid) && count($cid)>0) {
			$db = &JFactory::getDBO();
			$cids = implode(',', $cid);
			$query = 'UPDATE #__aicontactsafe_messages SET status_id = '.$new_status.', manual_status = 1 WHERE id IN ( '.$cids.' )';
			$db->setQuery($query);
			$db->query();
		}
	}
function changeStatus ( ) { $ cid = JRequest :: getVar ( 'cid' , array ( ) , 'post' , 'array' ) ; JArrayHelper :: toInteger ( $ cid ) ; $ new_status = JRequest :: getVar ( 'new_status' , 0 , 'post' , 'int' ) ; if ( $ new_status > 0 && is_array ( $ cid ) && count ( $ cid ) > 0 ) { $ db = & JFactory :: getDBO ( ) ; $ cids = implode ( ',' , $ cid ) ; $ query = 'UPDATE #__aicontactsafe_messages SET status_id = ' . $ new_status . ', manual_status = 1 WHERE id IN ( ' . $ cids . ' )' ; $ db -> setQuery ( $ query ) ; $ db -> query ( ) ; } }
function to change the status of the selected messages
function to change the status of the selected messages
// read the ids of the records seleted for deletion // initialize the database