<?php ############################################################## ##In-portal ## ############################################################## ## In-portal ## ## Intechnic Corporation ## ## All Rights Reserved, 1998-2002 ## ## ## ## No portion of this code may be copied, reproduced or ## ## otherwise redistributed without proper written ## ## consent of Intechnic Corporation. Violation will ## ## result in revocation of the license and support ## ## privileges along maximum prosecution allowed by law. ## ############################################################## if( !(isset($pathtoroot) && $pathtoroot) ) { $path=dirname(realpath(__FILE__)); if(strlen($path)) { /* determine the OS type for path parsing */ $pos = strpos($path,":"); if ($pos === false) { $gOS_TYPE="unix"; $pathchar = "/"; } else { $gOS_TYPE="win"; $pathchar="\\"; } $p = $path.$pathchar; /*Start looking for the root flag file */ if( !isset($pathtoroot) ) $pathtoroot = ''; while(!strlen($pathtoroot) && strlen($p)) { $sub = substr($p,strlen($pathchar)*-1); if($sub==$pathchar) { $filename = $p."root.flg"; } else $filename = $p.$pathchar."root.flg"; if(file_exists($filename)) { $pathtoroot = $p; } else { $parent = realpath($p.$pathchar."..".$pathchar); if($parent!=$p) { $p = $parent; } else $p = ""; } } if( !(isset($pathtoroot) && $pathtoroot) ) $pathtoroot = ".".$pathchar; } else { $pathtoroot = ".".$pathchar; } } $sub = substr($pathtoroot,strlen($pathchar)*-1); if($sub!=$pathchar) { $pathtoroot = $pathtoroot.$pathchar; } //echo $pathtoroot; require_once($pathtoroot."kernel/startup.php"); //admin only util $rootURL="http://".ThisDomain().$objConfig->Get("Site_Path"); $admin = $objConfig->Get("AdminDirectory"); if(!strlen($admin)) $admin = "admin"; $localURL=$rootURL."kernel/"; $adminURL = $rootURL.$admin; $imagesURL = $adminURL."/images"; //$pathtolocal = $pathtoroot."in-news/"; require_once ($pathtoroot.$admin."/include/elements.php"); require_once ($pathtoroot."kernel/admin/include/navmenu.php"); //require_once ($pathtolocal."admin/include/navmenu.php"); require_once($pathtoroot.$admin."/toolbar.php"); unset($objEditItems); $objEditItems = new clsGroupList(); $objEditItems->SourceTable = $objSession->GetEditTable("PortalGroup"); $objEditItems->EnablePaging = FALSE; $GroupCount = 0; if (isset($_POST["itemlist"])) { if(is_array($_POST["itemlist"])) { $GroupList = implode(",",$_POST["itemlist"]); $GroupCount = count($_POST["itemlist"]); } else { $a = explode($_POST["itemlist"]); $GroupCount = count($a); unset($a); $GroupList = $_POST["itemlist"]; } if($itemcount>1) { if ($en+1 == $itemcount) $en_next = -1; else $en_next = $en+1; if ($en == 0) $en_prev = -1; else $en_prev = $en-1; } $action = "m_sendmail"; } $envar = "env=" . BuildEnv(); $section = 'in-portal:editgroup_sendmail'; $title = prompt_language("la_Text_Send")." ".prompt_language("la_Text_Email")." ".prompt_language("la_Text_To")." $GroupCount ".prompt_language("la_Text_Groups"); echo $envar."<br>\n"; //Display header $sec = $objSections->GetSection($section); $objCatToolBar = new clsToolBar(); $objCatToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","edit_submit('editgroup','".$admin."/users/user_groups.php',1);",$imagesURL."/toolbar/tool_select.gif"); $objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","edit_submit('editgroup','".$admin."/users/user_groups.php',2);",$imagesURL."/toolbar/tool_cancel.gif"); int_header($objCatToolBar,NULL,$title); ?> <table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder"> <form ID="mailgroup" name="mailgroup" action="" method=POST> <tr <?php int_table_color(); ?>> <td valign="top" colspan="3"><?php echo prompt_language("la_prompt_Enable_HTML"); ?> <input type="checkbox" name="html_enable" value="1"> <br> <?php int_hint(prompt_language("la_Warning_Enable_HTML")); ?> </td> </tr> <?php int_subsection_title(prompt_language("la_tab_EmailMessage")); ?> <tr <?php int_table_color(); ?>> <td valign="top"><span class="text"><?php echo prompt_language("la_prompt_EmailSubject"); ?></span></td> <td> <input type="text" name="email_subject" class="text" size="30" value=""> </td> <td><span ID="valSubject" class="validation_error"><?php echo prompt_language("la_val_RequiredField"); ?></span></td> </tr> <tr <?php int_table_color(); ?>> <td valign="top"><span class="text"><?php echo prompt_language("la_prompt_EmailBody"); ?></span></td> <td> <textarea name="email_body" cols="30" rows="5" class="text"></textarea> </td> <td><span ID="valBody" class="validation_error"><?php echo prompt_language("la_val_RequiredField"); ?></span></td> </tr> <tr <?php int_table_color(); ?>> <td colspan="3"> <input type="hidden" name="Action" value="<?php echo $action; ?>"> <input type="hidden" name="idlist" value="<?php echo $GroupList; ?>"> <input type="hidden" name="IdType" VALUE="group"> <input type="button" name="submit1" value="<?php echo admin_language("la_Save"); ?>" class="button" onclick="edit_submit('editgroup','".$admin."/users/user_groups.php',1);"> <input type="button" name="submit3" value="<?php echo admin_language("la_Cancel"); ?>" class="button" onclick="edit_submit('editgroup','".$admin."/users/user_groups.php',2);"> </td> </tr> </FORM> </table> <SCRIPT LANGUAGE="JavaScript"> InitValidation(); </SCRIPT> <?php int_footer(); ?>