Jump to content

ashishmat1979

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Posts posted by ashishmat1979

  1. I am new to SugarCRM & WebDAV, and working on a task to manage mail merge templates.

     

    My task is to select & open an existing mail merge template word file through a drop down on Notes page, then using a button i need to merge contact details of person selected on that page and display the merged word file to user for further editing. When user saves this file it should be saved on website folder using WebDAV and attached to Note I am creating.

     

    I am in trouble of how to open a document on server for user to edit and save it back to server.

     

    Any help is appreciated in advance.

  2. Hi,

     

    We have updated a old site and now we are redirecting the old urls to new one with the 301 Redirect, its working with fine but we are facing problem where a question mark in the old urls, we know that the ? have a special meaning in the regex thats why this problem comes, we try to find a solution in the old post, but dont get it properly, here is the problem...

     

    the old url:

     

    www.funholidaysindia.com/hotel/?tajharimahal

     

    and the new one where we want to redirect this is:

     

    http://www.funholidaysindia.com/india-hotels/jodhpur-hotels/tajharimahal.html

     

    please suggest, regex for this.

  3. For one of our project we need multiple websites to be manage centrally with one joomla installation and one database.

     

    For specific we want to manage content as some content will be show in all websites, some in few and some only at one, the users will registered in any of these website can access all the websites as the db is the same.

    the look and feel also manageable from the admin end, if possible.

     

    Is this possible in Joomla? Is there any component available? We have already purchased the elearning multisite component, but it is not solving our problem.

     

    Any help in this matter will be highly appreciated.

  4. Finally found a way:

    I set the particular array index that is my selected value with value "selected" and repeated that array for all option values, when i reached that value it added "selected" in that option.

     

    <select name="isalutation_id" >
    						<?
    						$salutations = Get_Details($obj,'salutation_mast','','isalutation_id');
    						$selArrVal[$row[0]['isalutation_id']] = "selected";
    						for($i=0;$i<count($salutations);$i++){
    							?><option value="<?=$salutations[$i]['isalutation_id']?>" <?=$selArrVal[$salutations[$i]['isalutation_id']]?> ><?=$salutations[$i]['vsalutation']?></option><?
    						}
    						?>
    						</select>
    

     

    Thanks for your all support  :)

  5. Normally we fetch data for listbox from it's master table like for a invoice billing we select client name from listbox filled by client names from client table and store client id in invoice table; now when we edit that invoice or bill we have to show that client name selected in our listbox on form.

     

    For this we usually fill names of client from client table by a for loop and show that name selected by checking each id in if condition to match one stored in our invoice.

     

    Now if there is a long list of clients then script will took long time since if condition is repeated in for loop.

     

    thus needs a more optimistic solution for this.

     

  6. Please replace this with previous code bcoz previous code restricts length of words in name to be more than one.

     

    function valid_name($name)
    {
       // check if a name is possibly valid
      if(ereg("^[A-Z][a-z-]+([ ]{1}[A-Z]+[a-z-]+)?$", $name))
         return true;
      else
         return false;
    }

  7. Try with this code  :)

    function valid_name($name)
    {
       // check if a name is possibly valid
      if(ereg("^[A-Z][a-z-]+([ ]{1}[A-Z]+[a-z-]+)+$", $name))
         return true;
      else
         return false;
    }
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.