Link to home
Start Free TrialLog in
Avatar of pigmentarts
pigmentartsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Help files

hi,

i have a web application which i have created a help file for (so far just a .doc). i was wondering if there is a product/system out there which i can use for the help file i.e like the one you get with word etc.
ASKER CERTIFIED SOLUTION
Avatar of NAORC
NAORC

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, this is like my code.
I will post it for you. Or you can come to http://landautien.com/forum/music.php
I use it at Categories
My code :

/*********** PHP ************/
<?php
//########################### Cat List ###########################//
function catlist()
{
      $cat = array();
      $totalcats = '1';
      $maxid = '1';

      $cat_query = mysql_query("SELECT * FROM songcat ORDER BY displayorder, cat_name ASC");

      while ($cattemp = mysql_fetch_array($cat_query))
      {
            $id = $cattemp['catid'];
            if ($maxid < $id) $maxid = $id;

            $cat[$totalcats]['id'] = $totalcats;
            $cat[$totalcats]['cat_id'] = $cattemp['catid'];
            $cat[$totalcats]['parent_id'] = $cattemp['parent_catid'];
            $cat[$totalcats]['name'] = $cattemp['cat_name'];

            $totalcats++;
      }

      if ($totalcats == '1')
      {
            $cat_list_bit = $vbphrase['music_nocat'];
      }
      else
      {
            for ($cid = '1'; $cid <= $maxid; $cid++)
            {
                  if ($cat[$cid]['parent_id'] == '0')
                  {
                        $cat_id = $cat[$cid]['cat_id'];
                        $cat_name = $cat[$cid]['name'];
                        $par_num = '0';
                        $cat_list_sub = subcat($cat_id, $cat, $maxid);

                        $cat_list_bit .= "      <img src='images/misc/navbits_start.gif' border='0' class='inlineimg' style="cursor:hand;" onClick=\"hide_sub_cat(c$cat_id)\">
      <a href=' '><b>$cat_name</b></a><br>
      <span id=\"c$cat_id\" style=\"display : 'none'\"><div style=\"margin-left: 15px\">
                  $cat_list_sub
      </div></span>";
                  }
            }
      }

      $cat_list = $cat_list_bit;

      return $cat_list;
}

//########################### Sub Categories ###########################//
function subcat($parent_id, $cat, $maxid)
{
      global $vbulletin, $vbphrase;

      for ($sub_id = 0; $sub_id <= $maxid; $sub_id++)
      {
            if ($cat[$sub_id]['parent_id'] == $parent_id)
            {
                  $cat_id = $cat[$sub_id]['cat_id'];
                  $cat_name = $cat[$sub_id]['name'];

                  for ($n = '1'; $n <= $par_num; $n++) $sub_cats_ .= '<img src="clear.gif" width="15" border="0" class="inlineimg">';

                  $sub_cats_sub = subcat($cat_id, $cat, $maxid);

                  $sub_cats .= "      $sub_cats_ <img src='images/misc/navbits_start.gif' border='0' class='inlineimg' style=\"cursor:hand\" onClick=\"hide_sub_cat(c$cat_id)\"> <a href=' '>$cat_name</a><br>
      <span id=\"c$cat_id\" style=\"display : 'none'\"><div style=\"margin-left: 15px\">
            $sub_cats_sub
      </div></span>";
            }
      }

      return $sub_cats;
}
?>

So, just call catlist() function to get categories list.

/*********** Database ************/
CREATE TABLE IF NOT EXISTS songcat (
  catid int(11) NOT NULL auto_increment,
  parent_catid int(11) NOT NULL default '0',
  cat_name varchar(250) NOT NULL default '',
  displayorder INT NOT NULL DEFAULT '0';
  PRIMARY KEY  (catid)
) TYPE=MyISAM COMMENT='Music Category';

Goodluck.
Bonmat86
Opps, sorry, I post wrong code. Admin Or Mod delete my post please, thanks.
Bonmat86
Avatar of pigmentarts

ASKER

can not use php my server bonmat86

NAORC : that look perfect!!! what server side language is it in as i does not say!

could i also have it in one location (on my site) and my application pull in the file, like in a include, ie so i only update once and all customers view the same copy?

again thanks guys big help!

ps this is a online version right so its webbased? sorry about all the questions, my boss has give me this task of finding something
Avatar of NAORC
NAORC

When its created the CHM File, i kind of cheat.  I use the :

<a href="help.chm" target="_blank">

tag.  it opens the help file in a new window.  if you need anything more than this, email support@softany.com  and they will answer everything (quite quickly too)
yep seems good but you have to donwload it, some of my clients can not dowload things on there system (at work) so it need to be online. i have hopping there is something just like that but web based!
Thats irrelivant..

you download the software and create the files.. the client only views them and doesnt need the software installed as far as i know because the CHM files created are an extension of the windows help program
no sorry what i ment is they have to download the .chm file (ie help.chm)  before they can open it i.e. they must download it to there computer, desktop etc.

some of my clients can not do this, i would like a help system to be online (web based) like viewing a webpage, but just like this system. at the moment i have it up as a webpage or a pdf, but i really like the look of the winchm.
CHM is a compiled html file (series of html files packed into one super html file)

it can download into the temp file automatically regardless of permissions.  it should be no different to opening any other html file or web page
cool thank you very much, you have been a big help!
Your welcome.