Example #1
0
             ## remember this to see how well the estimate was
             Sql_Query(sprintf('replace into %s set name = "estimatedsize",id=%d,data = "%s"', $GLOBALS['tables']['messagedata'], $id, $htmlcnt[0] * $messagedata['htmlsize'] + $textcnt[0] * $messagedata['textsize']));
             $send_content .= sprintf($GLOBALS['I18N']->get('About %d users to receive HTML and %s users to receive text version of email'), $htmlcnt[0], $textcnt[0]) . '<br/>';
             Sql_Query(sprintf('replace into %s set name = "estimatedhtmlusers",id=%d,data = "%s"', $GLOBALS['tables']['messagedata'], $id, $htmlcnt[0]));
             Sql_Query(sprintf('replace into %s set name = "estimatedtextusers",id=%d,data = "%s"', $GLOBALS['tables']['messagedata'], $id, $textcnt[0]));
         }
     }
 }
 $send_content .= '</div>';
 ## the button to actually send the campagin
 $send_content .= $placeinqueue;
 print '<div class="sendtabs_container">';
 $tabs->setListClass('sendcampaign');
 $tabs->setId('sendtabs');
 #  $tabs->addPrevNext();
 $tabs->addTabNo();
 print $tabs->display();
 #print '<div id="tabcontent"></div>';
 $panelcontent = '';
 switch ($_GET['tab']) {
     case 'Attach':
         $panelcontent = $att_content;
         break;
         //   case "Criteria": print $criteria_content; break; // moved to plugin
     //   case "Criteria": print $criteria_content; break; // moved to plugin
     case 'Text':
         $panelcontent = $textcontent;
         break;
     case 'Format':
         $panelcontent = $formatting_content;
         break;