{"id":20253846,"url":"https://github.com/militska/stech","last_synced_at":"2026-05-14T05:39:25.455Z","repository":{"id":15770804,"uuid":"18509748","full_name":"militska/stech","owner":"militska","description":"Дипломный проект. Автоматизированная система сопровождения процесса ремонта  компьютерной техники (оставлено на память, мой первый php project)","archived":false,"fork":false,"pushed_at":"2015-02-14T09:42:09.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T17:13:21.336Z","etag":null,"topics":["drupal","drupal-7","drupal-module","php"],"latest_commit_sha":null,"homepage":"http://militska.ru/?p=1036","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/militska.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-07T07:48:00.000Z","updated_at":"2020-10-27T17:18:05.000Z","dependencies_parsed_at":"2022-09-11T07:00:51.404Z","dependency_job_id":null,"html_url":"https://github.com/militska/stech","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/militska/stech","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/militska%2Fstech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/militska%2Fstech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/militska%2Fstech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/militska%2Fstech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/militska","download_url":"https://codeload.github.com/militska/stech/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/militska%2Fstech/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33012760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-7","drupal-module","php"],"created_at":"2024-11-14T10:27:59.451Z","updated_at":"2026-05-14T05:39:25.441Z","avatar_url":"https://github.com/militska.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"stech\n=====\n\nАСУ сервиса компьютерной техники, есть  возможноть шагалки  по статусам.\n\nКод для продвинутой  шагалки был  написан    чуть  позже.\n\n    function stech_taxar($tid, $act) {\n     \n      $q = db_select('taxonomy_term_data', 'ttd')\n          -\u003efields('ttd', array('tid', 'name'))\n          -\u003econdition('vid', variable_get('stech_status'))\n          -\u003eorderBy('weight', 'DESC')\n          -\u003eexecute();\n            \n         $arstatus0 = array();\n        \n         foreach ($q as $rec) {\n        \n           $arstatus0[$rec-\u003etid] = $rec -\u003e name;\n         }\n        \n          $arstatus = array();\n          $arstatus = array_flip($arstatus0);\n          $statuskey = array_keys($arstatus0);\n \n          $first = array_shift($statuskey);\n          $last = end($statuskey); \n         \n          switch ($act) {\n            case 'next':\n                $output = $tid+1; \n                break;\n            case \"prev\":\n                 $output = $tid-1; ;\n                break;\n            case \"first\":\n                $output = $first;\n                break;\n         \n            case \"last\":\n        $output = $last;\n        break; \n          }\n          return $output;\n        }\n        \n        }}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilitska%2Fstech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilitska%2Fstech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilitska%2Fstech/lists"}