$rolename) { $combovalues .=''; } foreach($roleDetails as $roleid=>$rolename) { $combovalues .=''; } foreach($grpDetails as $groupid=>$groupname) { $combovalues .=''; } $fromComboValues=$combovalues; $toComboValues=$combovalues; } elseif($mode == 'edit') { //constructing the from combo values $fromtype=$shareInfo[3]; $fromid=$shareInfo[5]; foreach($roleDetails as $roleid=>$rolename) { $selected=''; if($fromtype == 'roles') { if($roleid == $fromid) { $selected='selected'; } } $fromComboValues .=''; } foreach($roleDetails as $roleid=>$rolename) { $selected=''; if($fromtype == 'rs') { if($roleid == $fromid) { $selected='selected'; } } $fromComboValues .=''; } foreach($grpDetails as $groupid=>$groupname) { $selected=''; if($fromtype == 'groups') { if($groupid == $fromid) { $selected='selected'; } } $fromComboValues .=''; } //constructing the to combo values $totype=$shareInfo[4]; $toid=$shareInfo[6]; foreach($roleDetails as $roleid=>$rolename) { $selected=''; if($totype == 'roles') { if($roleid == $toid) { $selected='selected'; } } $toComboValues .=''; } foreach($roleDetails as $roleid=>$rolename) { $selected=''; if($totype == 'rs') { if($roleid == $toid) { $selected='selected'; } } $toComboValues .=''; } foreach($grpDetails as $groupid=>$groupname) { $selected=''; if($totype == 'groups') { if($groupid == $toid) { $selected='selected'; } } $toComboValues .=''; } } $relatedmodule=''; $relatedlistscombo=''; if($mode == 'create') { $sharPerCombo = ''; $sharPerCombo .= ''; } elseif($mode == 'edit') { $selected1=''; $selected2=''; if($shareInfo[7] == 0) { $selected1='selected'; } elseif($shareInfo[7] == 1) { $selected2='selected'; } $sharPerCombo = ''; $sharPerCombo .= ''; } $output.='
'; if($sharing_module == 'Accounts') { $display_module = $app_strings['Accounts'].' & '.$app_strings['Contacts']; } else { $display_module = $app_strings[$sharing_module]; } $output .= ''; else $output .=$mod_strings[LBL_ADD_CUSTOM_RULE].''; $output .= '
'.$display_module.' - '; if($mode == 'edit') $output .=$mod_strings[LBL_EDIT_CUSTOM_RULE].''.$app_strings[
'.$mod_strings[LBL_STEP].' 1 : '.$display_module.' '.$app_strings[LBL_LIST_OF].' ('.$mod_strings[LBL_SELECT_ENTITY].')  
'; //combovalues $output.=''; $output.='  
 
'.$mod_strings[LBL_STEP].' 2 : '.$mod_strings[LBL_CAN_BE_ACCESSED_BY].' ('.$mod_strings[LBL_SELECT_ENTITY].') '.$mod_strings[LBL_PERMISSIONS].'
 
 
'.$mod_strings[LBL_RULE_CONSTRUCTION].'
 
 
  
'; $output.='
'; echo $output; ?>