Posts

Showing posts from November, 2019

টেবিলে অনেক গুলো রো থাকবে । সেখানে চেক আউট অপশন থাকবে । Multiple check option select korle supplier wage invoice create hobe and invoice products details thakbe

< table   width = "100%"   class = "table table-striped table-bordered table-hover"   id = "dataTables-example" >      < thead >          < tr   style = " background-color: #23ab2d;color:white" >              < th >                  < label   class = "checkbox-inline" >< input   type = "checkbox"   value = "" ></ label >              </ th >              < th > Code </ th >              < th > Item </ th >              < th > Quantity </ th >              < th > Supplier </ th >              < th > Price </ th >          </ tr >      </ thead >      < tbody >          <?php        //  print "<pre>";      //  print_r($allsupplierproduct);           foreach ( $allsupplierproduct  as  $value ){           $query =  $this -> db -> que

মাল্টি ডাইমেনশনাল array data get

     <!-- modal processpurchaseorder -->      < div   id = "processpurchaseorderproduct"   class = "modal fade"   role = "dialog" >          < div   class = "modal-dialog"   style = " width: 60%;" >              < form   action = " <?php   echo   base_url ( 'OrderController/savepurchaseorders' ); ? > "   method = "post"   >                  <!-- Modal content-->                  < div   class = "modal-content" >                      < div   class = "modal-header"   style = " padding: 5px 10px;" >                          < button   type = "button"   class = "close"   data-dismiss = "modal" > &times; </ button >                          < h3   class = "modal-title text-center" >  Send order </ h3 >                      </ div >           

Select tag reload and submit

<!-- script --> < script > // ******************************************************** // *     Supplier select with pagination                    * // ********************************************************       $ ( "#supplier" ). change ( function  () {      $ ( "#supplierallid" ). submit ();     }); < / script > <!-- VIEW   --> < form   action = " <?php   echo   base_url ( "ordercontroller/purchaseorder" ) ? > "   id = "supplierallid"   method = "get" >      < div   class = "form-group" >          < label   for = "allsupplier"   style = " font-size: 14px;font-weight: 600; color: #00bcd4;" > Select Supplier </ label >          < select   class = "form-control"   name = "supplier_id"   id = "supplier"   >              < option   value = "" > All Suppl

Multiple color edit "Displaying multiple color id

< select   class = "form-control"   name = "pro_color[]"   multiple = "multiple"   id = "color" >      <?php            $colorid  =  $supplierSelectdata -> pro_color ;   // here get color id           $explodevalue  =  explode ( ',' , $colorid );    // , alada kora hoiche           foreach  ( $color  as  $k => $val ) {   // $color database theke ane index neya hoiche           $selected  =  '' ;          foreach ( $explodevalue  as  $key => $view ){          if ( $view  ==  $val -> color_id ){              $selected  .=  "selected" ;         }         }      ? >          < option    <?php   echo  ( $selected )?  'selected' :  ''   ? >   value = " <?php    echo   $val -> color_id ;  ? > " >   <?php   echo   $val -> color ;  ? > </ option >          <?php    }  ? > </ select >