Esempio n. 1
0
set_include_path(get_include_path() . PATH_SEPARATOR . $apppath);
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
echo "Data: " . date("Y-m-d");
$res1 = $nvobj->getClubstatus(3);
//   $blngArr = array(1,15,31,61);
$blngArr = array(1, 15, 31, 45, 61, 75);
//  $bd =   $nvobj->selectingBirthdayJV();
//  $blng_one = $nvobj->selectingBlngJV($blngArr[0]);
//  $blng_sec = $nvobj->selectingBlngJV($blngArr[1]);
//  $blng_third = $nvobj->selectingBlngJV($blngArr[2]);
//  $blng_fourth = $nvobj->selectingBlngJV($blngArr[3]);
//  $blng_fifth = $nvobj->selectingBlngJV($blngArr[4]);
//  $blng_sixth = $nvobj->selectingBlngJV($blngArr[5]);
//  foreach($res1 as $arr=>$res){
//       if($res->getBodconf()){
////           $phones = $nvobj->getClubBdPhones();
////           $nvobj->sendCampaign($res->getBodmsg(), $phones, $res->getBodsend(), $res->getTimezone(), $res->getClubid());
//       }
//       if($res->getBlngfirstconf()){