Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function freeway_dashboard(){
- drupal_add_js(drupal_get_path('module', 'freeway') .'/js/dashboardscript.js');
- $statusValue = 'Draft';
- $listOfProjectsIds = array();
- $listOfProjectsDesc = array();
- $node = node_load(arg(1));
- $form = array();
- $url_arg = trim($_GET['status']);
- //echo($url_arg);
- $arrayStatus = array(1 =>'Draft',2=>'NotSpecified',3=>'Quote',4=>'Forecasted',5=>'InEvaluation',6=>'Cancelled',7=>'Booked',8=>'InProduction',9=>'Completed',10=>'Closed');
- $LoginClient = new SoapClient("https://freeway.demo.lionbridge.com/vojo/FreewayAuth.asmx?wsdl", array("trace"=>1));
- $ServicesLink = new SoapClient("https://freeway.demo.lionbridge.com/vojo/Service.asmx?wsdl", array("trace"=>1));
- .....
- $form['status_list']=array(
- '#type'=>'select',
- '#title' => t('Freeway Project Statuses'),
- '#options' => $arrayStatus,
- '#default_value' => t('Select Status'),
- '#attributes'=> array('onselect' => "populateStatusTables();"),
- '#weight'=>0,
- );
- //i am guessing the div will be here ?
- for($m=0;$m <count($listOfProjectsIds);$m+=1){
- $options[$listOfProjectsIds[$m]] = '';
- $form[$listOfProjectsIds[$m]]['projectID'] = array('#value' => $listOfProjectsIds[$m]);
- $form[$listOfProjectsIds[$m]]['projectDesc'] = array('#value' => $listOfProjectsDesc[$m]);
- }
- $form['featured'] = array(
- '#type' => 'checkboxes',
- '#options' => $options,
- '#multiple' => false,
- );
- $form['getProjectDetails'] = array(
- '#type' => 'submit',
- '#value' => t('Get Details'),
- '#weight'=>5,
- );
- $form['cancel'] = array(
- '#type' => 'markup',
- '#value' => l(t('Cancel'), 'dashboard'),
- '#weight'=>6,
- );
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement