= 5){ $useday = strtotime("+3 days",$last_monday); //thursday $lastmoddate_weekly_seminars = date ("Y-m-d" , $useday); }elseif($current_day >= 3){ $useday = strtotime("+1 days",$last_monday); //tuesday $lastmoddate_weekly_seminars = date ("Y-m-d" , $useday); }else{ $lastmoddate_weekly_seminars = date ("Y-m-d" , $last_monday); //monday } //daily - for training pages - most recent monday, tuesday, or thursday depending on time of month $current_dayofmonth = date("d"); if($current_dayofmonth >= 20){ $useday = strtotime("+3 days",$last_monday); //thursday $lastmoddate_daily = date ("Y-m-d" , $useday); }elseif($current_dayofmonth >= 9){ $useday = strtotime("+1 days",$last_monday); //tuesday $lastmoddate_daily = date ("Y-m-d" , $useday); }else{ $lastmoddate_daily = date ("Y-m-d" , $last_monday); //monday } echo '<'.'?xml version="1.0" encoding="UTF-8"?'.'>';?> http://www.bookstraining.com/ daily 0.9 http://www.bookstraining.com/quickbooks-training.php daily 0.8 http://www.bookstraining.com/accounting-courses.php daily 0.8 http://www.bookstraining.com/microsoft-access-training.php daily 0.8 http://www.bookstraining.com/microsoft-project-training.php daily 0.8 http://www.bookstraining.com/microsoft-powerpoint-training.php daily 0.8 http://www.bookstraining.com/microsoft-excel-training.php daily 0.8 http://www.bookstraining.com/microsoft-word-training.php daily 0.8 http://www.bookstraining.com/about-us.php daily 0.8 http://www.bookstraining.com/contact-us.php daily 0.8 http://www.bookstraining.com/reference-studies.php daily 0.8 http://www.bookstraining.com/privacy-policy.php daily 0.8 http://www.bookstraining.com/terms-of-service.php daily 0.8 http://www.bookstraining.com/local/sitemap.xml daily 0.8 '.$this_url.''.$lastmoddate_subfolder.'weekly0.5'; // // $sql = ''; // $sql = 'SELECT distinct state FROM geolist_major_state_abbr_city order by state asc'; // // $result = $db->query($sql); // // $this_count_state_total = $result->size(); // // $this_count_state = 0; // while($row = $result->fetch()) { // // $this_state = str_replace(" ", "-", strtolower($row['state'])); // // //state output // $this_url = 'http://'.$_SERVER['HTTP_HOST'].'/'.$subfolder_this.$subfolder_this_learntype.'/'.$this_state.'/'; // // $output .= ''.$this_url.''.$lastmoddate_subfolder_state.'weekly0.5'; // // $sql2 = ''; // $sql2 = 'SELECT distinct state, city FROM geolist_major_state_abbr_city where state="'.$this_state.'" order by state asc'; // // $result2 = $db2->query($sql2); // // $this_count_city_total = $result2->size(); // // $this_count_city = 0; // while($row2 = $result2->fetch()) { // // $this_city = str_replace(" ", "-", strtolower($row2['city'])); // // $this_url = 'http://'.$_SERVER['HTTP_HOST'].'/'.$subfolder_this.$subfolder_this_learntype.'/'.$this_state.'/'.$this_city.'/'; // // $output .= ''.$this_url.''.$lastmoddate_subfolder_state_city.'daily0.8'; // // $this_count_city++; // } //while($row2 = $result2->fetch()) { - row city // // $this_count_state++; // }//while($row = $result->fetch()) { - state // // } //foreach($sitemap_subfolders_learntype as $subfolder_this_learntype){ // // }//foreach($sitemap_subfolders as $subfolder_this) echo $output; ?>